Logic cleanup.

This commit is contained in:
Ray Hayes 2016-10-18 18:19:07 -07:00
parent 38f8da0160
commit 5e50d2a9e7

3
sftp.c
View File

@ -2125,8 +2125,7 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2)
wchar_t wcmd[2048];
printf("sftp> ");
if (fgetws(wcmd, sizeof(cmd)/sizeof(wchar_t), infile) == NULL) {
if (interactive)
printf("\n");
printf("\n");
break;
}
else {