diff --git a/src/token.c b/src/token.c index 01f56c6a..34988f90 100644 --- a/src/token.c +++ b/src/token.c @@ -133,6 +133,7 @@ char const *FindInitialToken(Token *tok, char const *s) DBufInit(&buf); tok->type = T_Illegal; + tok->val = 0; while (isempty(*s)) s++; @@ -160,6 +161,7 @@ void FindToken(char const *s, Token *tok) int l; tok->type = T_Illegal; + tok->val = 0; if (! *s) { tok->type = T_Empty; return;