commit dae94a5fffd4365d0b3f544b1a784702ab03f23f
parent ac919a733a5e7b27472d69b433447406310f2144
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Fri, 22 Jul 2016 00:28:03 +0200
sboconfig: if the config couldn't be read, use an empty string
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sboconfig b/sboconfig
@@ -129,7 +129,7 @@ if (exists $changes{SLACKWARE_VERSION}) {
sub config_write {
script_error('config_write requires at least two arguments.') unless @_ >= 2;
- my $conf = slurp($conf_file);
+ my $conf = slurp($conf_file) || '';
_fixup_conf($conf);
while (@_ >= 2) {