From 16d0b5d1b59be9ceee31b77ac89f70d6789988a9 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Tue, 15 Jan 2002 17:45:42 +0000 Subject: [PATCH] Don't allow the parser to continue if the conversion context couldn't be opened. --- gedcom/gedcom.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gedcom/gedcom.y b/gedcom/gedcom.y index 3302c1b..fcffbd4 100644 --- a/gedcom/gedcom.y +++ b/gedcom/gedcom.y @@ -761,7 +761,9 @@ head_gedc_form_sect : OPEN DELIM TAG_FORM mand_line_item /* HEAD.CHAR */ head_char_sect : OPEN DELIM TAG_CHAR mand_line_item - { if (open_conv_to_internal($4) == 0) YYERROR; + { /* Don't allow to continue if conversion context couldn't + be opened */ + if (open_conv_to_internal($4) == 0) YYABORT; $$ = start_element(ELT_HEAD_CHAR, PARENT, $1, $3, $4, GEDCOM_MAKE_STRING(val1, $4)); -- 2.30.2