Skip to content

Commit

Permalink
Merge pull request #98 from harleypig/master
Browse files Browse the repository at this point in the history
check for definedness of $taint variable
  • Loading branch information
hoelzro committed Dec 28, 2012
2 parents 94d82c3 + 78b25b1 commit 7fc36aa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/efm_perl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@
# need to turn on taint if it's on the shebang line.
# naive check for [tT] switch ... will both t and T ever be used at the same time?
my ( $taint ) = `head -n 1 $file` =~ /\s.*-.*?(t)/i;
push @checks, "-$taint" if $taint ne '';

my $checks = join ' ', @checks;
push @checks, "-$taint" if defined $taint;

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

Expand Down

0 comments on commit 7fc36aa

Please sign in to comment.