From 20483795e4a73050e4fa02ac9394c23f2c11e0d7 Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Mon, 12 Apr 2010 11:31:24 -0500 Subject: [PATCH] Remove "dbRecordHead: tempList not empty" errors. Loading a .db file that uses an unknown record type leaves items on the parser's tempList. This patch empties that list when the error is reported so future dbLoadRecords() commands can run. --- src/dbStatic/dbLexRoutines.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dbStatic/dbLexRoutines.c b/src/dbStatic/dbLexRoutines.c index 57461d3a0..f2e6cf57a 100644 --- a/src/dbStatic/dbLexRoutines.c +++ b/src/dbStatic/dbLexRoutines.c @@ -113,6 +113,8 @@ static void yyerrorAbort(char *str) { yyerror(str); yyAbort = TRUE; + while (ellCount(&tempList)) + popFirstTemp(); } static void allocTemp(void *pvoid)