diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Src/Modules/zftp.c | 2 |
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 |