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:
@@ -657,6 +657,8 @@ handle_fallback_primitive_restart(struct pipe_context *pipe,
|
||||
else {
|
||||
ptr = ib->ptr;
|
||||
}
|
||||
} else {
|
||||
ptr = NULL;
|
||||
}
|
||||
|
||||
if (!ptr)
|
||||
|
||||
Reference in New Issue
Block a user