summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-19 11:00:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-19 11:00:33 +0000
commite99cc37db444046e94d25b7aec324c707c9bfdd2 (patch)
tree03505f66532be5064d8e1948de867672616eb816 /lib
parentb7e976dc8b28c7096918374edcc00568b80f1c93 (diff)
* lib/resolv.rb (Resolv::Config.default_config_hash): return an
empty hash when resolv.conf is not available. [ruby-core:27620] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/resolv.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb
index c71559d4f3..99bf5a483c 100644
--- a/lib/resolv.rb
+++ b/lib/resolv.rb
@@ -831,7 +831,7 @@ class Resolv
config_hash[:search] = [search].flatten if search
end
end
- config_hash
+ config_hash || {}
end
def lazy_initialize