Dont look too careful on local [CID-23]
authorLove Hornquist Astrand <lha@h5l.org>
Thu, 30 Jul 2009 12:16:20 +0000 (14:16 +0200)
committerLove Hornquist Astrand <lha@h5l.org>
Thu, 30 Jul 2009 12:16:20 +0000 (14:16 +0200)
appl/ftp/ftp/ftp.c

index b6e58b30858db7a7b0dcebef4037f98879be9f11..682a346902024d2060d3042b7b5f9414b4f7cb84 100644 (file)
@@ -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, '/');