summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-09-04 22:23:51 +0000
committerClint Adams <clint@users.sourceforge.net>2008-09-04 22:23:51 +0000
commitf926ebbf23f93a08283c2dd5c8de44ef969d945f (patch)
treedce84573975efe59136a37226b723905a4ebef41
parentadcf467e28612ebf78ea6df3417be7bd6feda824 (diff)
downloadzsh-f926ebbf23f93a08283c2dd5c8de44ef969d945f.tar.gz
zsh-f926ebbf23f93a08283c2dd5c8de44ef969d945f.tar.xz
zsh-f926ebbf23f93a08283c2dd5c8de44ef969d945f.zip
25609: initialize sz variable.
-rw-r--r--ChangeLog4
-rw-r--r--Src/Modules/zftp.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 450f38148..b18b9a1ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-04  Clint Adams  <clint@zsh.org>
+
+	* 25609: Src/Modules/zftp.c: initialize sz variable.
+
 2008-09-03  Peter Stephenson  <pws@csr.com>
 
 	* Jun T: 25603: Doc/Zsh/compsys.yo: format error.
diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c
index af48e80aa..4679c56a6 100644
--- a/Src/Modules/zftp.c
+++ b/Src/Modules/zftp.c
@@ -2568,7 +2568,7 @@ zftp_getput(char *name, char **args, int flags)
 	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