Skip to content

Commit

Permalink
Fixed NULL dereference in debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 7, 2009
1 parent 29095ad commit 2d8c5d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mojoshader_preprocessor.c
Expand Up @@ -30,7 +30,8 @@ static Token debug_preprocessor_lexer(IncludeState *s)
#if DEBUG_TOKENIZER
static void print_debug_lexing_position(IncludeState *s)
{
printf("NOW LEXING %s:%d ...\n", s->filename, s->line);
if (s != NULL)
printf("NOW LEXING %s:%d ...\n", s->filename, s->line);
} // print_debug_lexing_position
#else
#define print_debug_lexing_position(s)
Expand Down

0 comments on commit 2d8c5d4

Please sign in to comment.