From ac830139dadf4abd48232e3eb5ce0c8d06d19dcf Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Tue, 1 Oct 2019 00:32:26 +0200 Subject: 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 --- lib/checksrc.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/checksrc.pl') 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; -- cgit v1.2.3