svga: initialize a variable to silence a gcc warning
authorBrian Paul <brianp@vmware.com>
Wed, 17 Aug 2016 14:20:33 +0000 (08:20 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 17 Aug 2016 18:53:20 +0000 (12:53 -0600)
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_pipe_query.c

index bf074b6..33822e6 100644 (file)
@@ -1091,7 +1091,7 @@ svga_get_query_result(struct pipe_context *pipe,
                                        (void *)&occResult, sizeof(occResult));
          vresult->b = occResult.anySamplesRendered != 0;
       } else {
-         uint64_t count;
+         uint64_t count = 0;
          ret = get_query_result_vgpu9(svga, sq, wait, &count);
          vresult->b = count != 0;
       }