1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-17 06:55:02 -05:00

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

View File

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