From 91d5f79e1c7f5ba6654849769f806119d023033d Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Wed, 2 Jun 1999 20:12:22 +0000 Subject: [PATCH] (sendrequest): lmode != rmode git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6289 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/ftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appl/ftp/ftp/ftp.c b/appl/ftp/ftp/ftp.c index 884a26af4..4fff40f51 100644 --- a/appl/ftp/ftp/ftp.c +++ b/appl/ftp/ftp/ftp.c @@ -615,7 +615,7 @@ sendrequest (char *cmd, char *local, char *remote, char *lmode, int printnames) int (*closefunc) (FILE *); RETSIGTYPE (*oldintr)(), (*oldintp)(); long bytes = 0, hashbytes = HASHBYTES; - char *rmode; + char *rmode = "w"; if (verbose && printnames) { if (local && strcmp (local, "-") != 0) @@ -632,7 +632,7 @@ sendrequest (char *cmd, char *local, char *remote, char *lmode, int printnames) closefunc = NULL; oldintr = NULL; oldintp = NULL; - lmode = "w"; + if (setjmp (sendabort)) { while (cpend) { getreply (0);