mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
zink: error-check right variable
That's not the value we just allocated... CoverityID: 1455177 Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
c8769ff8dd
commit
7a63124a06
1 changed files with 1 additions and 1 deletions
|
|
@ -840,7 +840,7 @@ get_const_def(struct spirv_builder *b, SpvOp op, SpvId type,
|
|||
}
|
||||
|
||||
struct spirv_const *cnst = CALLOC_STRUCT(spirv_const);
|
||||
if (!type)
|
||||
if (!cnst)
|
||||
return 0;
|
||||
|
||||
cnst->op = op;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue