Skip to content
Permalink
Browse files

checksrc: fix uninitialized variable warning

The loop doesn't need to be executed without a file argument.

Closes #4444
  • Loading branch information...
MarcelRaad committed Sep 30, 2019
1 parent 0f62c9a commit ac830139dadf4abd48232e3eb5ce0c8d06d19dcf
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/checksrc.pl
@@ -176,7 +176,7 @@ sub checkwarn {

$file = shift @ARGV;

while(1) {
while(defined $file) {

if($file =~ /-D(.*)/) {
$dir = $1;

0 comments on commit ac83013

Please sign in to comment.
You can’t perform that action at this time.