summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorArnaud Desmons <adesmons@mandriva.com>2002-08-07 11:23:42 +0000
committerArnaud Desmons <adesmons@mandriva.com>2002-08-07 11:23:42 +0000
commit1075c75ced12036e45fbc738bacbfe16dd2fa669 (patch)
tree5f56e56b1b50782d49d9da6dc00b72ada8056bce /common
parent6b1badfc68e62482b8f0d3eb69c7524a3e7adaf7 (diff)
downloaddrakwizard-1075c75ced12036e45fbc738bacbfe16dd2fa669.tar
drakwizard-1075c75ced12036e45fbc738bacbfe16dd2fa669.tar.gz
drakwizard-1075c75ced12036e45fbc738bacbfe16dd2fa669.tar.bz2
drakwizard-1075c75ced12036e45fbc738bacbfe16dd2fa669.tar.xz
drakwizard-1075c75ced12036e45fbc738bacbfe16dd2fa669.zip
fixed when an empty line is read and interpreted as data
Diffstat (limited to 'common')
-rwxr-xr-xcommon/scripts/Vareqval.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/scripts/Vareqval.pm b/common/scripts/Vareqval.pm
index f5f31929..77993d99 100755
--- a/common/scripts/Vareqval.pm
+++ b/common/scripts/Vareqval.pm
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w
# Author Philippe Hétroy, phetroy@mandrakesoft.com
-# $Id: Vareqval.pm,v 1.1 2002-07-26 09:19:56 adesmons Exp $
+# $Id: Vareqval.pm,v 1.2 2002-08-07 11:23:42 adesmons Exp $
# Module for loding and committing informations in a VAR = value file type
@@ -34,6 +34,7 @@ sub get {
\s*$ # end of line
/x;
no warnings;
+ next if (!defined $v || $v eq "");
$l{$v} = defined $val2 ? $val2 : $val;
}