about summary refs log tree commit diff stats
path: root/src/LYForms.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2013-05-06 00:53:46 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2013-05-06 00:53:46 -0400
commite294ae2634858bab2dccda56a4a205a979eab96a (patch)
tree3ae558dec2cac0adfc86850cedb0e5c528e467c5 /src/LYForms.c
parent398cc2f5cbd84d35293b2a4cd68c73fe854fbddb (diff)
downloadlynx-snapshots-e294ae2634858bab2dccda56a4a205a979eab96a.tar.gz
snapshot of project "lynx", label v2-8-8dev_15e
Diffstat (limited to 'src/LYForms.c')
-rw-r--r--src/LYForms.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/LYForms.c b/src/LYForms.c
index 19b15a2f..423d376c 100644
--- a/src/LYForms.c
+++ b/src/LYForms.c
@@ -1,4 +1,4 @@
-/* $LynxId: LYForms.c,v 1.102 2013/05/01 09:19:14 tom Exp $ */
+/* $LynxId: LYForms.c,v 1.103 2013/05/04 12:58:54 tom Exp $ */
 #include <HTUtils.h>
 #include <HTCJK.h>
 #include <HTTP.h>
@@ -49,6 +49,9 @@ static char **options_list(OptionType * opt_ptr)
 	if (pass == 0) {
 	    len++;
 	    result = typecallocn(char *, len);
+
+	    if (result == 0)
+		outofmem(__FILE__, "options_list");
 	} else {
 	    result[len] = 0;
 	}