bug-wget
[Top][All Lists]
Advanced

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

[Bug-wget] [PATCH] Silence compiler warning


From: Steven Schubiger
Subject: [Bug-wget] [PATCH] Silence compiler warning
Date: Mon, 11 Oct 2010 15:59:34 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

ftp.c: In function 'getftp':
ftp.c:506: warning: 'targ' may be used uninitialized in this function

=== modified file 'src/ftp.c'
--- src/ftp.c   2010-09-29 11:34:09 +0000
+++ src/ftp.c   2010-10-11 13:29:34 +0000
@@ -503,7 +503,7 @@
         logputs (LOG_VERBOSE, _("==> CWD not needed.\n"));
       else
         {
-          char *targ;
+          char *targ = NULL;
          int cwd_count;
          int cwd_end;
          int cwd_start;




reply via email to

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