X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fparser_proc_grammar.y;h=e0eca666d4e3b66c3b46865a589b50e87e17f7c1;hp=7a3cf55f7dbef3bef88b8751abc3f5727619e832;hb=44bd65fe60fb83fa4c3bbb0d4c679d2b70a096df;hpb=cd0567b4052ee24259bc6b8a9858af9d26f3de48 diff --git a/src/parser_proc_grammar.y b/src/parser_proc_grammar.y index 7a3cf55..e0eca66 100644 --- a/src/parser_proc_grammar.y +++ b/src/parser_proc_grammar.y @@ -2296,7 +2296,7 @@ static int psi_parser_proc_lex(YYSTYPE *lvalp, struct psi_parser *P, struct psi_ #if PSI_DEBUG_LEX PSI_DEBUG_PRINT(P, "PSI: LEX index %4zu ", *index); #endif - if (psi_plist_get(tokens, (*index)++, &token)) { + if (psi_plist_get(tokens, (*index)++, &token) && token) { #if PSI_DEBUG_LEX PSI_DEBUG_DUMP(P, psi_token_dump, token); #endif