From 79269c03d231d3d2a564f77072d466f23cfc42c0 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sun, 17 Mar 2002 14:38:29 +0000 Subject: [PATCH] Graceful error handling on bogus input. --- gedcom/gedcom.y | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gedcom/gedcom.y b/gedcom/gedcom.y index e4d8a70..4884719 100644 --- a/gedcom/gedcom.y +++ b/gedcom/gedcom.y @@ -420,6 +420,8 @@ int compat_mode(int flags); file : head_sect records trlr_sect { if (fail == 1) YYABORT; } + | error + { } ; records : /* empty */ -- 2.30.2