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:
Vinson Lee 2011-10-20 16:52:53 -07:00
parent b27298055e
commit f664d6a2f3

View file

@ -657,6 +657,8 @@ handle_fallback_primitive_restart(struct pipe_context *pipe,
else {
ptr = ib->ptr;
}
} else {
ptr = NULL;
}
if (!ptr)