From 1d851a1400dafc43e1489a58b0317e00eadaf5c0 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Fri, 24 Aug 2012 18:23:35 +0200 Subject: [PATCH] fixing token-reset in modelname --- lexer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lexer.c b/lexer.c index 75452a1..aa08a89 100644 --- a/lexer.c +++ b/lexer.c @@ -698,6 +698,7 @@ int lex_do(lex_file *lex) } lex->modelname = lex->tok.value; lex->tok.value = NULL; + lex->tok.value_alloc = lex->tok.value_count = 0; for (frame = 0; frame < lex->frames_count; ++frame) { if (!strcmp(v, lex->frames[frame].name)) { lex->framevalue = lex->frames[frame].value; -- 2.39.2