Skip to content

Commit 8cf7f50

Browse files
author
Harley Pig
committed
changed check for unitialized variable
1 parent 7b56a8a commit 8cf7f50

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

efm_perl.pl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@
5252
# need to turn on taint if it's on the shebang line.
5353
# naive check for [tT] switch ... will both t and T ever be used at the same time?
5454
my ( $taint ) = `head -n 1 $file` =~ /\s.*-.*?(t)/i;
55-
push @checks, "-$taint" if $taint ne '';
56-
57-
my $checks = join ' ', @checks;
55+
push @checks, "-$taint" if defined $taint;
5856

5957
my ( $message, $extracted_file, $lineno, $rest );
6058

0 commit comments

Comments
 (0)