From f926ebbf23f93a08283c2dd5c8de44ef969d945f Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Thu, 4 Sep 2008 22:23:51 +0000 Subject: 25609: initialize sz variable. --- ChangeLog | 4 ++++ Src/Modules/zftp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 450f38148..b18b9a1ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-09-04 Clint Adams + + * 25609: Src/Modules/zftp.c: initialize sz variable. + 2008-09-03 Peter Stephenson * 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 -- cgit 1.4.1