diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2013-08-04 02:24:54 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2013-08-04 02:24:54 +0000 |
commit | b7dde2bc4bffda277a2079f23c2a920734d73ad5 (patch) | |
tree | 99fd31b74fcaf3517628f158e77288f17ac6a1dc /file.c | |
parent | One more patch for siteconf from [w3m-dev 04464] (diff) | |
download | w3m-b7dde2bc4bffda277a2079f23c2a920734d73ad5.tar.gz w3m-b7dde2bc4bffda277a2079f23c2a920734d73ad5.zip |
Fix segfault of loadGeneralFile()
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718612
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2267,10 +2267,11 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer, if (header_string) header_string = NULL; #ifdef USE_NNTP - if (f.scheme == SCM_NNTP || f.scheme == SCM_NEWS) + if (b && b != NO_BUFFER && (f.scheme == SCM_NNTP || f.scheme == SCM_NEWS)) reAnchorNewsheader(b); #endif - preFormUpdateBuffer(b); + if (b && b != NO_BUFFER) + preFormUpdateBuffer(b); TRAP_OFF; return b; } |