Skip to content

Commit

Permalink
Fixed infinite loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 3, 2009
1 parent 7c24011 commit 4e8ab34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_assembler.c
Expand Up @@ -2002,7 +2002,7 @@ const MOJOSHADER_parseData *MOJOSHADER_assemble(const char *source,
output_comments(ctx, comments, comment_count, symbols, symbol_count);

// parse out the rest of the tokens after the version token...
while (nexttoken(ctx, 1, 1, 0, 1))
while ((nexttoken(ctx, 1, 1, 0, 1)) && (!ctx->eof))
{
if (isfail(ctx))
{
Expand Down

0 comments on commit 4e8ab34

Please sign in to comment.