forked from extern/shorewall_code
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:
parent
472425cc62
commit
787cec4fe7
@ -1221,7 +1221,7 @@ sub copy2( $ ) {
|
||||
################################################################################
|
||||
|
||||
EOF
|
||||
print $script $_ unless /^\s*$/;
|
||||
print $script $_ if defined && ! /^\s*$/;
|
||||
|
||||
while ( <IF> ) {
|
||||
chomp;
|
||||
|
Loading…
Reference in New Issue
Block a user