Skip to content

Commit fa6c210

Browse files
authored
Check for undefined variable. See #450 (#451)
Signed-off-by: Henry Cox <henry.cox@mediatek.com>
1 parent 74fccdd commit fa6c210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/geninfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ if (0 == scalar(@gcov_tool)) {
338338
} elsif (!file_name_is_absolute($tool)) {
339339
$tool = abs_path($tool);
340340
}
341-
if (!-x $tool) {
341+
unless (defined($tool) && -x $tool) {
342342
die("cannot access gcov tool '$gcov_tool[0]'");
343343
}
344344
$gcov_tool[0] = $tool;

0 commit comments

Comments
 (0)