diff options
Diffstat (limited to 'src/LYDownload.c')
-rw-r--r-- | src/LYDownload.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/LYDownload.c b/src/LYDownload.c index be1a8134..839af32b 100644 --- a/src/LYDownload.c +++ b/src/LYDownload.c @@ -35,7 +35,6 @@ PUBLIC void LYDownload ARGS1( char command[LY_MAXPATH]; char *cp; lynx_html_item_type *download_command = 0; - FILE *fp; int ch, recall; int FnameTotal; int FnameNum; @@ -249,12 +248,7 @@ check_recall: */ CTRACE((tfp, "LYDownload: filename is %s\n", buffer)); - if ((fp = fopen(buffer, "w")) != NULL) { - fclose(fp); - remove(buffer); - } else { - HTAlert(CANNOT_WRITE_TO_FILE); - _statusline(NEW_FILENAME_PROMPT); + if (! LYCanWriteFile(buffer)) { FirstRecall = TRUE; FnameNum = FnameTotal; goto retry; |