diff options
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3214,7 +3214,8 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status, ftpc->prevpath=strdup(""); free(path); } - infof(data, "Remembering we are in dir \"%s\"\n", ftpc->prevpath); + if(ftpc->prevpath) + infof(data, "Remembering we are in dir \"%s\"\n", ftpc->prevpath); } else { ftpc->prevpath = NULL; /* no path */ |