mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-28 08:29:28 +01: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:
parent
472425cc62
commit
787cec4fe7
@ -1221,7 +1221,7 @@ sub copy2( $ ) {
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
print $script $_ unless /^\s*$/;
|
print $script $_ if defined && ! /^\s*$/;
|
||||||
|
|
||||||
while ( <IF> ) {
|
while ( <IF> ) {
|
||||||
chomp;
|
chomp;
|
||||||
|
Loading…
Reference in New Issue
Block a user