mirror of
https://github.com/moparisthebest/curl
synced 2024-11-04 08:35:05 -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:
parent
0f62c9af8b
commit
ac830139da
@ -176,7 +176,7 @@ sub checkwarn {
|
||||
|
||||
$file = shift @ARGV;
|
||||
|
||||
while(1) {
|
||||
while(defined $file) {
|
||||
|
||||
if($file =~ /-D(.*)/) {
|
||||
$dir = $1;
|
||||
|
Loading…
Reference in New Issue
Block a user