commit | ac830139dadf4abd48232e3eb5ce0c8d06d19dcf | [log] [tgz] |
---|---|---|
author | Marcel Raad <Marcel.Raad@teamviewer.com> | Tue Oct 01 00:32:26 2019 +0200 |
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | Tue Oct 01 10:47:45 2019 +0200 |
tree | 7e8e7d0e4f5f19b4c80228d96bcdcaf062fc5cdb | |
parent | 0f62c9af8bc24245a352363d614b8cf848a43e06 [diff] |
checksrc: fix uninitialized variable warning The loop doesn't need to be executed without a file argument. Closes https://github.com/curl/curl/pull/4444
diff --git a/lib/checksrc.pl b/lib/checksrc.pl index 965f0ba..b2cfa83 100755 --- a/lib/checksrc.pl +++ b/lib/checksrc.pl
@@ -176,7 +176,7 @@ $file = shift @ARGV; -while(1) { +while(defined $file) { if($file =~ /-D(.*)/) { $dir = $1;