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
This commit is contained in:
Marcel Raad 2019-10-01 00:32:26 +02:00
parent 0f62c9af8b
commit ac830139da
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ sub checkwarn {
$file = shift @ARGV;
while(1) {
while(defined $file) {
if($file =~ /-D(.*)/) {
$dir = $1;