diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-19 08:28:39 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-19 08:28:39 +0000 |
commit | 53cbf415073d4a0c1a2961df9d9d8c29f0a182d8 (patch) | |
tree | 23befdc7af958e31ea849bcc27e7dbf64f11ce6b /file.c | |
parent | [w3m-dev 03653] SourceForge.net: 576032 w3m https crashes with OpenSSL-0.9.7 (diff) | |
download | w3m-53cbf415073d4a0c1a2961df9d9d8c29f0a182d8.tar.gz w3m-53cbf415073d4a0c1a2961df9d9d8c29f0a182d8.zip |
[w3m-dev 03654] file.c:image_source when undef USE_IMAGE
* file.c (readHeader): image_source ifdef USE_IMAGE
(loadGeneralFile): ditto
(uncompress_stream): ditto
From: WATANABE Katsuyuki <knabe@sannet.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | file.c | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.192 2003/01/17 17:30:59 ukai Exp $ */ +/* $Id: file.c,v 1.193 2003/01/19 08:28:40 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -594,7 +594,11 @@ readHeader(URLFile *uf, Buffer *newBuf, int thru, ParsedURL *pu) else http_response_code = 0; - if (thru && !newBuf->header_source && !image_source) { + if (thru && !newBuf->header_source +#ifdef USE_IMAGE + && !image_source +#endif + ) { Str tmpf = tmpfname(TMPF_DFL, NULL); src = fopen(tmpf->ptr, "w"); if (src) @@ -1899,8 +1903,10 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer, page_loaded: if (page) { FILE *src; +#ifdef USE_IMAGE if (image_source) return NULL; +#endif tmp = tmpfname(TMPF_SRC, ".html"); src = fopen(tmp->ptr, "w"); if (src) { @@ -7734,7 +7740,11 @@ uncompress_stream(URLFile *uf, char **src) return; } - if (uf->scheme != SCM_LOCAL && !image_source) { + if (uf->scheme != SCM_LOCAL +#ifdef USE_IMAGE + && !image_source +#endif + ) { tmpf = tmpfname(TMPF_DFL, ext)->ptr; if (save2tmp(*uf, tmpf) < 0) { UFclose(uf); |