diff options
author | Vinson Lee <[email protected]> | 2011-10-20 16:52:53 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2011-10-20 17:12:37 -0700 |
commit | f664d6a2f3575167c4cf83815ea923c379b14fa5 (patch) | |
tree | 3aa3f7188385ec2b668087b8a24267fcaab1772e /src | |
parent | b27298055efdae61402ca55ef175f60ba16536f3 (diff) |
st/mesa: Initialize variable.
ptr is uninitialized if ib is NULL.
Fixes Coverity uninitialized pointer read defect.
Reviewed-by: Jakob Bornecrantz <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 2 |
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) |