[zaptel-commits] tzafrir: branch 1.4 r4187 - /branches/1.4/kernel/xpp/utils/zconf/Zaptel/Config/

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Mon Apr 21 16:28:00 CDT 2008


Author: tzafrir
Date: Mon Apr 21 16:27:59 2008
New Revision: 4187

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4187
Log:
Zaptel::Config::Default - don't die if no config file.

(Accidentally left out of the merge from 1.2)

Modified:
    branches/1.4/kernel/xpp/utils/zconf/Zaptel/Config/Defaults.pm

Modified: branches/1.4/kernel/xpp/utils/zconf/Zaptel/Config/Defaults.pm
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/xpp/utils/zconf/Zaptel/Config/Defaults.pm?view=diff&rev=4187&r1=4186&r2=4187
==============================================================================
--- branches/1.4/kernel/xpp/utils/zconf/Zaptel/Config/Defaults.pm (original)
+++ branches/1.4/kernel/xpp/utils/zconf/Zaptel/Config/Defaults.pm Mon Apr 21 16:27:59 2008
@@ -46,7 +46,9 @@
 			}
 		}
 	}
-	die "No default_file" unless $default_file;
+	if (! $default_file) {
+		return ("", ());
+	}
 	my %vars = Zaptel::Config::Defaults::do_source($default_file, @vars);
 	return ($default_file, %vars);
 }




More information about the zaptel-commits mailing list