summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2011-10-20 16:52:53 -0700
committerVinson Lee <[email protected]>2011-10-20 17:12:37 -0700
commitf664d6a2f3575167c4cf83815ea923c379b14fa5 (patch)
tree3aa3f7188385ec2b668087b8a24267fcaab1772e
parentb27298055efdae61402ca55ef175f60ba16536f3 (diff)
st/mesa: Initialize variable.
ptr is uninitialized if ib is NULL. Fixes Coverity uninitialized pointer read defect. Reviewed-by: Jakob Bornecrantz <[email protected]>
-rw-r--r--src/mesa/state_tracker/st_draw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index 20ba993800a..a2bff044eea 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -657,6 +657,8 @@ handle_fallback_primitive_restart(struct pipe_context *pipe,
else {
ptr = ib->ptr;
}
+ } else {
+ ptr = NULL;
}
if (!ptr)