w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit a5809b9b4e6b46a7e7da7739305ffdcc6f7e3893
parent db0f4a4cbaad0064bd732e887556e31d5d383d0d
Author: ukai <ukai>
Date:   Fri,  8 Feb 2002 11:18:10 +0000

[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:
MChangeLog | 5+++++
Mfile.c | 4+++-
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2002-02-08 Tsutomu Okada <okada@furuno.co.jp> + + * [w3m-dev 03011] segmentation fault on <input> tag without <form> + * file.c (process_input): tmp initialization fix + 2002-02-07 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> * [emacs-w3m:02733] for emacs-w3m better rendering with inline image diff --git a/file.c b/file.c @@ -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);