mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Initialize token.val in a few places.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user