diff options
author | Michal Krol <[email protected]> | 2009-09-14 13:08:16 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-09-14 13:08:16 +0200 |
commit | cd26ccf6fecd03ca66731340c7bb7341eaa093a1 (patch) | |
tree | be822d2a9d3aa5e4de255850078349825c44a828 /src/mesa | |
parent | 169aead1b55446c7bfe669b6a822d56e8af15f7f (diff) |
grammar: Adapt to pp interface change.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/grammar/grammar.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/shader/grammar/grammar.c b/src/mesa/shader/grammar/grammar.c index 54e94bbf6a9..ebfcef06800 100644 --- a/src/mesa/shader/grammar/grammar.c +++ b/src/mesa/shader/grammar/grammar.c @@ -3149,7 +3149,10 @@ grammar_fast_check (grammar id, return 0; } - sl_pp_context_init(&context); + if (sl_pp_context_init(&context)) { + free(outbuf); + return 1; + } if (sl_pp_tokenise(&context, outbuf, &intokens)) { sl_pp_context_destroy(&context); |