diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-10-01 00:32:26 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-10-01 10:47:45 +0200 |
commit | ac830139dadf4abd48232e3eb5ce0c8d06d19dcf (patch) | |
tree | 7e8e7d0e4f5f19b4c80228d96bcdcaf062fc5cdb /lib | |
parent | 0f62c9af8bc24245a352363d614b8cf848a43e06 (diff) | |
download | curl-ac830139dadf4abd48232e3eb5ce0c8d06d19dcf.tar.gz |
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
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/checksrc.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/checksrc.pl b/lib/checksrc.pl index 965f0bab1..b2cfa8355 100755 --- a/lib/checksrc.pl +++ b/lib/checksrc.pl @@ -176,7 +176,7 @@ sub checkwarn { $file = shift @ARGV; -while(1) { +while(defined $file) { if($file =~ /-D(.*)/) { $dir = $1; |