diff options
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | form.c | 7 |
2 files changed, 11 insertions, 4 deletions
@@ -1,3 +1,9 @@ +2002-11-12 Fumitoshi UKAI <ukai@debian.or.jp> + + * [w3m-dev 03422] Re: setting form on loading + * form.c (loadPreForm): initialize name + check textarea, name for /textarea + 2002-11-12 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> * [w3m-dev 03418] Re: tab browser @@ -4589,4 +4595,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.505 2002/11/12 12:46:53 ukai Exp $ +$Id: ChangeLog,v 1.506 2002/11/12 13:06:14 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: form.c,v 1.21 2002/11/12 12:42:50 ukai Exp $ */ +/* $Id: form.c,v 1.22 2002/11/12 13:06:14 ukai Exp $ */ /* * HTML forms */ @@ -740,7 +740,7 @@ loadPreForm(void) struct pre_form *pf = NULL; struct pre_form_item *pi = NULL; int type = -1; - char *name; + char *name = NULL; PreForm = NULL; fp = openSecretFile(pre_form_file); @@ -795,9 +795,10 @@ loadPreForm(void) textarea = Strnew(); continue; } - else if (!strcmp(s, "/textarea")) { + else if (textarea && name && !strcmp(s, "/textarea")) { pi = add_pre_form_item(pf, pi, type, name, textarea->ptr, NULL); textarea = NULL; + name = NULL; continue; } else |