projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b2626f
)
NULL ptr check
author
Brian
<brian@yutani.localnet.net>
Tue, 10 Apr 2007 01:07:13 +0000
(19:07 -0600)
committer
Brian
<brian@yutani.localnet.net>
Tue, 10 Apr 2007 01:07:22 +0000
(19:07 -0600)
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 a25037cd61c3ac566611a000d744210494310f1a..ee82a107e0c472d77651741d74726f3c1cc36940 100644
(file)
--- 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;
}