Skip to content

Commit

Permalink
check ARGV definedness
Browse files Browse the repository at this point in the history
  • Loading branch information
cotto committed Aug 31, 2011
1 parent f9b4167 commit f5ee33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/dev/all_hll_test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ =head1 DESCRIPTION
mkdir $install_dir;
my $status = [];
my $verbose = 0;
if ($ARGV[0] eq '-v' || $ARGV[0] eq '--verbose') {
if (defined $ARGV[0] && ($ARGV[0] eq '-v' || $ARGV[0] eq '--verbose')) {
$verbose = 1;
}

Expand Down

0 comments on commit f5ee33e

Please sign in to comment.