mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-08 16:54:10 +01:00
Fix undefined variable warning
This commit is contained in:
parent
9ef0dcb221
commit
5297bb8b8d
@ -689,10 +689,9 @@ sub cleanup() {
|
||||
#
|
||||
# Unlink temporary files
|
||||
#
|
||||
unlink $tempfile, $tempfile = undef if $tempfile;
|
||||
unlink $scriptfilename, $scriptfilename = undef if $scriptfilename;
|
||||
unlink $_ for @tempfiles;
|
||||
@tempfiles = ();
|
||||
unlink ( $tempfile ), $tempfile = undef if $tempfile;
|
||||
unlink ( $scriptfilename ), $scriptfilename = undef if $scriptfilename;
|
||||
unlink ( @tempfiles ), @tempfiles = () if @tempfiles;
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user