aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2019-10-01 00:32:26 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-10-01 10:47:45 +0200
commitac830139dadf4abd48232e3eb5ce0c8d06d19dcf (patch)
tree7e8e7d0e4f5f19b4c80228d96bcdcaf062fc5cdb
parent0f62c9af8bc24245a352363d614b8cf848a43e06 (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
-rwxr-xr-xlib/checksrc.pl2
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;