Correct bug in check_token: line length should be reset to 0.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sat, 11 Jan 2003 17:23:22 +0000 (17:23 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sat, 11 Jan 2003 17:23:22 +0000 (17:23 +0000)
gedcom/gedcom_1byte.lex

index 42e7cb82453bce723dc5863e956d4e0ab1ef5676..7c47f18a461a32c78f68e25c241965f336c56fea 100644 (file)
@@ -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)