mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
svga: Ensure vb_transfer in svga_swtnl_draw_vbo in initialized.
Fixes a uninitialized pointer read defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
5cbc0f0036
commit
57049219f5
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ enum pipe_error
|
|||
svga_swtnl_draw_vbo(struct svga_context *svga,
|
||||
const struct pipe_draw_info *info)
|
||||
{
|
||||
struct pipe_transfer *vb_transfer[PIPE_MAX_ATTRIBS];
|
||||
struct pipe_transfer *vb_transfer[PIPE_MAX_ATTRIBS] = { 0 };
|
||||
struct pipe_transfer *ib_transfer = NULL;
|
||||
struct pipe_transfer *cb_transfer = NULL;
|
||||
struct draw_context *draw = svga->swtnl.draw;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue