projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9ea936
)
add NULL ptr check
author
Brian
<brian@yutani.localnet.net>
Fri, 9 Mar 2007 23:53:44 +0000
(16:53 -0700)
committer
Brian
<brian@yutani.localnet.net>
Fri, 9 Mar 2007 23:53:44 +0000
(16:53 -0700)
src/mesa/shader/slang/slang_codegen.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_codegen.c
b/src/mesa/shader/slang/slang_codegen.c
index 6587629ebb03fbdda9ae26f67610b4c88e182975..64bb9141bc9281534234a44d70fe70217933a68b 100644
(file)
--- a/
src/mesa/shader/slang/slang_codegen.c
+++ b/
src/mesa/shader/slang/slang_codegen.c
@@
-1167,6
+1167,8
@@
_slang_gen_asm(slang_assemble_ctx *A, slang_operation *oper,
kids[0] = kids[1] = kids[2] = NULL;
for (j = 0; j < info->NumParams; j++) {
kids[j] = _slang_gen_operation(A, &oper->children[firstOperand + j]);
+ if (!kids[j])
+ return NULL;
}
n = new_node3(info->Opcode, kids[0], kids[1], kids[2]);