From e99cc37db444046e94d25b7aec324c707c9bfdd2 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 19 Jan 2010 11:00:33 +0000 Subject: * 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 --- lib/resolv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3