aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-10 16:33:38 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-10 16:33:38 +0000
commit03cccce553db31a8f1b9d109aebf78f78d7089e7 (patch)
treed5c267b93f4452ecc59170fca84e47f8e2c943a7 /file.c
parent[w3m-dev 03626] Re: relative URL (diff)
downloadw3m-03cccce553db31a8f1b9d109aebf78f78d7089e7.tar.gz
w3m-03cccce553db31a8f1b9d109aebf78f78d7089e7.zip
[w3m-dev 03628] Re: Error occured while reset
* file.c (doExternal): bufp = NULL, return 1 (uncompress_stream): tempfname fileToDelete From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'file.c')
-rw-r--r--file.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/file.c b/file.c
index cd63488..27dfce0 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.180 2003/01/10 16:16:45 ukai Exp $ */
+/* $Id: file.c,v 1.181 2003/01/10 16:33:46 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -7393,9 +7393,10 @@ doExternal(URLFile uf, char *path, char *type, Buffer **bufp,
else
#endif
{
- if (save2tmp(uf, tmpf->ptr) < 0)
- return 0; /* ??? */
- UFclose(&uf);
+ if (save2tmp(uf, tmpf->ptr) < 0) {
+ *bufp = NULL;
+ return 1;
+ }
}
if (mcap->flags & (MAILCAP_HTMLOUTPUT | MAILCAP_COPIOUSOUTPUT)) {
if (defaultbuf == NULL)
@@ -7789,6 +7790,7 @@ uncompress_stream(URLFile *uf, char **src)
if (uf->scheme != SCM_LOCAL) {
tmpf = tmpfname(TMPF_DFL, ext)->ptr;
+ pushText(fileToDelete, tmpf);
if (save2tmp(*uf, tmpf) < 0) {
UFclose(uf);
return;
@@ -7801,7 +7803,6 @@ uncompress_stream(URLFile *uf, char **src)
*src = tmpf;
else
uf->scheme = SCM_LOCAL;
- pushText(fileToDelete, tmpf);
}
flush_tty();