lynx/lynx-crash.patch
2005-01-06 17:14:35 +00:00

26 lines
720 B
Diff

--- lynx2-8-5/src/HTML.c.crash 2005-01-06 17:03:09.658969996 +0000
+++ lynx2-8-5/src/HTML.c 2005-01-06 17:07:24.096481825 +0000
@@ -7041,13 +7041,15 @@
/*
* Finish the previous option.
*/
- ptr = HText_setLastOptionValue(me->text,
- me->option.data,
- me->LastOptionValue,
- LAST_ORDER,
- me->LastOptionChecked,
- me->UCLYhndl,
- ATTR_CS_IN);
+ if (!me->first_option)
+ ptr = HText_setLastOptionValue(me->text,
+ me->option.data,
+ me->LastOptionValue,
+ LAST_ORDER,
+ me->LastOptionChecked,
+ me->UCLYhndl,
+ ATTR_CS_IN);
+
FREE(me->LastOptionValue);
me->LastOptionChecked = FALSE;