diff --git a/appl/ftp/ftp/ftp.c b/appl/ftp/ftp/ftp.c index b6e58b308..682a34690 100644 --- a/appl/ftp/ftp/ftp.c +++ b/appl/ftp/ftp/ftp.c @@ -936,7 +936,7 @@ recvrequest (char *cmd, char *local, char *remote, return; } oldintr = signal (SIGINT, abortrecv); - if (!local_given || (strcmp (local, "-") && *local != '|')) { + if (!local_given || (local && (strcmp(local, "-") && *local != '|'))) { if (access (local, 2) < 0) { char *dir = strrchr (local, '/');