mirror of
https://gitlab.com/shorewall/code.git
synced 2025-08-09 07:31:00 +02:00
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:
@ -1221,7 +1221,7 @@ sub copy2( $ ) {
|
||||
################################################################################
|
||||
|
||||
EOF
|
||||
print $script $_ unless /^\s*$/;
|
||||
print $script $_ if defined && ! /^\s*$/;
|
||||
|
||||
while ( <IF> ) {
|
||||
chomp;
|
||||
|
Reference in New Issue
Block a user