From b2d47ae979b2f4d15147d21772ce61529347ad06 Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Thu, 12 Sep 2024 10:51:00 -0400 Subject: [PATCH] Initialize token.val in a few places. --- src/token.c | 2 ++ 1 file changed, 2 insertions(+) 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;