Skip to content

Commit

Permalink
fix: fix memory overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
facetint committed Apr 1, 2024
1 parent b9f1e3d commit 1f8052c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lexer/syntax_analyzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ int is_there_lack_of_word(t_token *token)
while (token)
{
token = skip_delimiters(token);
if (!token)
break ;
if (wait_for_word && !is_word(token->type))
return (0);
if (is_word(token->type))
Expand Down

0 comments on commit 1f8052c

Please sign in to comment.