w3m

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

commit da78544d9c574d7d65c3755bb3cf7177621c5efd
parent f8f805f50f6a612d4d07b40a1fcea8f0eecb5269
Author: ukai <ukai>
Date:   Tue, 12 Nov 2002 13:06:14 +0000

[w3m-dev 03422] Re: setting form on loading
* form.c (loadPreForm): initialize name
		check textarea, name for /textarea
From: Fumitoshi UKAI  <ukai@debian.or.jp>

Diffstat:
MChangeLog | 6++++++
Mform.c | 5+++--
2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -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 diff --git a/form.c b/form.c @@ -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