mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
NULL ptr check
This commit is contained in:
parent
7b2626f7d8
commit
0109b47106
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue