aboutsummaryrefslogtreecommitdiffstats
path: root/form.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-12 13:06:14 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-12 13:06:14 +0000
commit3a0ae78f81d34519d3451f666164754ae4e3962c (patch)
treec6819478920e701ef0eaf5306e3fd5c5f8556b48 /form.c
parent[w3m-dev 03418] Re: tab browser (diff)
downloadw3m-3a0ae78f81d34519d3451f666164754ae4e3962c.tar.gz
w3m-3a0ae78f81d34519d3451f666164754ae4e3962c.zip
[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 (limited to '')
-rw-r--r--form.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/form.c b/form.c
index d711191..af3adcc 100644
--- a/form.c
+++ b/form.c
@@ -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