From: Brian Paul Date: Mon, 21 Jul 2008 22:04:56 +0000 (-0600) Subject: mesa: added null ptr check (error handling case) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9a7ee2d0044c01aeb6646f0235b030ccd7ba844;p=mesa.git mesa: added null ptr check (error handling case) --- diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c index 291fd7c6ddf..c01ec3c185f 100644 --- a/src/mesa/shader/slang/slang_emit.c +++ b/src/mesa/shader/slang/slang_emit.c @@ -1225,6 +1225,9 @@ emit_if(slang_emit_info *emitInfo, slang_ir_node *n) } } + if (!n->Children[0]->Store) + return NULL; + #if 0 assert(n->Children[0]->Store->Size == 1); /* a bool! */ #endif