From: Peter Verthez Date: Sat, 11 Jan 2003 17:23:22 +0000 (+0000) Subject: Correct bug in check_token: line length should be reset to 0. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=480d2b0a13a25c0a67d8a1006465b0b35966fe06;p=gedcom-parse.git Correct bug in check_token: line length should be reset to 0. --- diff --git a/gedcom/gedcom_1byte.lex b/gedcom/gedcom_1byte.lex index 42e7cb8..7c47f18 100644 --- a/gedcom/gedcom_1byte.lex +++ b/gedcom/gedcom_1byte.lex @@ -230,6 +230,7 @@ int gedcom_check_token(const char* str, ParseState state, int check_token) yy_delete_buffer(YY_CURRENT_BUFFER); buffer = yy_scan_string(str); + INIT_LINE_LEN; if (state == STATE_NORMAL) BEGIN(NORMAL); else if (state == STATE_INITIAL)