mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
st/mesa: Initialize variable.
ptr is uninitialized if ib is NULL. Fixes Coverity uninitialized pointer read defect. Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
This commit is contained in:
parent
b27298055e
commit
f664d6a2f3
1 changed files with 2 additions and 0 deletions
|
|
@ -657,6 +657,8 @@ handle_fallback_primitive_restart(struct pipe_context *pipe,
|
|||
else {
|
||||
ptr = ib->ptr;
|
||||
}
|
||||
} else {
|
||||
ptr = NULL;
|
||||
}
|
||||
|
||||
if (!ptr)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue