summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-04-09 19:07:13 -0600
committerBrian <[email protected]>2007-04-09 19:07:22 -0600
commit0109b4710615d55155b4ef85a599a86769dc0325 (patch)
tree90a2ca1d31fb330e3e2acb75139e20bef1d30ddb
parent7b2626f7d8ed3a336575a7caeb4166434293e535 (diff)
NULL ptr check
-rw-r--r--src/mesa/shader/slang/slang_codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index a25037cd61c..ee82a107e0c 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -1348,7 +1348,7 @@ _slang_gen_function_call_name(slang_assemble_ctx *A, const char *name,
* Try adapting the parameters.
*/
fun = _slang_first_function(A->space.funcs, name);
- if (!_slang_adapt_call(oper, fun, &A->space, A->atoms, A->log)) {
+ if (!fun || !_slang_adapt_call(oper, fun, &A->space, A->atoms, A->log)) {
slang_info_log_error(A->log, "Function '%s' not found (check argument types)", name);
return NULL;
}