gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 126/222: checksrc: fix uninitialized variable warning


From: gnunet
Subject: [gnurl] 126/222: checksrc: fix uninitialized variable warning
Date: Thu, 07 Nov 2019 00:10:22 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit ac830139dadf4abd48232e3eb5ce0c8d06d19dcf
Author: Marcel Raad <address@hidden>
AuthorDate: Tue Oct 1 00:32:26 2019 +0200

    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(-)

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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]