Skip to content

Commit

Permalink
binding ruby: platform may be nil
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 15, 2016
1 parent fd5a420 commit 8e2cb63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion binding/ruby/lib/milter/manager.rb
Expand Up @@ -425,8 +425,9 @@ def load_if_exist(path)

def load_default
platform = @configuration.package_platform
return if platform.nil?
platform = "redhat" if platform.start_with?("centos")
load_if_exist("defaults/#{platform}.conf") if platform
load_if_exist("defaults/#{platform}.conf")
end

def define_milter(name, &block)
Expand Down

0 comments on commit 8e2cb63

Please sign in to comment.