Graceful error handling on bogus input.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 17 Mar 2002 14:38:29 +0000 (14:38 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 17 Mar 2002 14:38:29 +0000 (14:38 +0000)
gedcom/gedcom.y

index e4d8a70dca7a9493378aed6758ec7db568ddc5cc..48847192e1ed1ed8a7d0d1b8e7abdb3bdd848923 100644 (file)
@@ -420,6 +420,8 @@ int  compat_mode(int flags);
 
 file        : head_sect records trlr_sect
                { if (fail == 1) YYABORT; }
+            | error
+               {  }
             ;
 
 records     : /* empty */