Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: zftp unitialized sz



I'm not really sure what's going on here and if this should be -1 or 0
for when zfstats() isn't called.

Index: Src/Modules/zftp.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/zftp.c,v
retrieving revision 1.47
diff -u -r1.47 zftp.c
--- Src/Modules/zftp.c	12 Jul 2007 03:09:13 -0000	1.47
+++ Src/Modules/zftp.c	4 Sep 2008 22:00:44 -0000
@@ -2568,7 +2568,7 @@
 	char *ln, *rest = NULL;
 	off_t startat = 0;
 	if (progress && (prog = getshfunc("zftp_progress")) != &dummy_eprog) {
-	    off_t sz;
+	    off_t sz = -1;
 	    /*
 	     * This calls the SIZE command to get the size for remote
 	     * files.  Some servers send the size with the reply to



Messages sorted by: Reverse Date, Date, Thread, Author