Mesa (master): i965: Initialize brw_blorp_const_color_program member variables.

Chad Versace chadversary at kemper.freedesktop.org
Mon Jul 1 17:19:49 UTC 2013


Module: Mesa
Branch: master
Commit: 7214fe3cc4cf5f08092e6eb8980eb1d56a84cdd3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7214fe3cc4cf5f08092e6eb8980eb1d56a84cdd3

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Thu Jun 27 22:40:20 2013 -0700

i965: Initialize brw_blorp_const_color_program member variables.

Fixes "Uninitialized scalar field" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>

---

 src/mesa/drivers/dri/i965/brw_blorp_clear.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
index f925ab3..bf11135 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
+++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
@@ -121,7 +121,11 @@ brw_blorp_const_color_program::brw_blorp_const_color_program(
       const brw_blorp_const_color_prog_key *key)
    : mem_ctx(ralloc_context(NULL)),
      brw(brw),
-     key(key)
+     key(key),
+     R0(),
+     R1(),
+     clear_rgba(),
+     base_mrf(0)
 {
    brw_init_compile(brw, &func, mem_ctx);
 }




More information about the mesa-commit mailing list