diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-08 11:18:10 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-08 11:18:10 +0000 |
commit | b9744906025024667c8072e9f6aca9e96c423139 (patch) | |
tree | 1be32b70b89fafd5a79bdc05b00c2f7ba3689df2 /file.c | |
parent | [emacs-w3m:02733] for emacs-w3m better rendering with inline image (diff) | |
download | w3m-b9744906025024667c8072e9f6aca9e96c423139.tar.gz w3m-b9744906025024667c8072e9f6aca9e96c423139.zip |
[w3m-dev 03011] segmentation fault on <input> tag without <form>
* file.c (process_input): tmp initialization fix
From: Tsutomu Okada <okada@furuno.co.jp>
Diffstat (limited to '')
-rw-r--r-- | file.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.68 2002/02/07 14:16:00 ukai Exp $ */ +/* $Id: file.c,v 1.69 2002/02/08 11:18:10 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -3073,7 +3073,7 @@ process_input(struct parsed_tag *tag) { int i, w, v, x, y, z, iw, ih; char *q, *p, *r, *p2, *s; - Str tmp = Strnew(); + Str tmp = NULL; char *qq = ""; int qlen = 0; @@ -3081,6 +3081,8 @@ process_input(struct parsed_tag *tag) char *s = "<form_int method=internal action=none>"; tmp = process_form(parse_tag(&s, TRUE)); } + if (tmp == NULL) + tmp = Strnew(); p = "text"; parsedtag_get_value(tag, ATTR_TYPE, &p); |