Fix 'uninitialized variable' bug in Config::copy2

Bug reported by Tuomo Soini

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-03-16 07:12:39 -07:00
parent 472425cc62
commit 787cec4fe7

View File

@ -1221,7 +1221,7 @@ sub copy2( $ ) {
################################################################################
EOF
print $script $_ unless /^\s*$/;
print $script $_ if defined && ! /^\s*$/;
while ( <IF> ) {
chomp;