X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=psftp.c;fp=psftp.c;h=5394c1fbb9150007422c8f9d0b39da66ff8aa37e;hb=988e26068eead42aed72573cc1cab14cb9bfebe7;hp=4fba2d73fd184659572c67f27b56404773c7a618;hpb=4b372b0877d11330fe6b9d12ef8b5852b59754e2;p=PuTTY.git diff --git a/psftp.c b/psftp.c index 4fba2d73..5394c1fb 100644 --- a/psftp.c +++ b/psftp.c @@ -1050,6 +1050,7 @@ int sftp_cmd_ls(struct sftp_command *cmd) if (dirh == NULL) { printf("Unable to open %s: %s\n", dir, fxp_error()); + return 0; } else { nnames = namesize = 0; ournames = NULL;