author | Ryan C. Gordon <icculus@icculus.org> |
Tue, 10 Feb 2009 17:29:36 -0500 | |
changeset 559 | d34ac77da171 |
parent 558 | 314c86ff14dd |
child 560 | 225d579ae929 |
--- a/mojoshader_preprocessor.c Tue Feb 10 17:24:05 2009 -0500 +++ b/mojoshader_preprocessor.c Tue Feb 10 17:29:36 2009 -0500 @@ -333,7 +333,11 @@ { IncludeState *state = ctx->include_stack; if (state == NULL) + { + *_token = TOKEN_EOI; + *_len = 0; return NULL; // we're done! + } // if if (state->insert_token != TOKEN_UNKNOWN) {