diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | file.c | 6 |
2 files changed, 10 insertions, 3 deletions
@@ -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 @@ -2870,4 +2875,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.306 2002/02/07 14:44:47 ukai Exp $ +$Id: ChangeLog,v 1.307 2002/02/08 11:18:10 ukai Exp $ @@ -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); |