Mesa (master): intel: silence uninitialized var warning

Brian Paul brianp at kemper.freedesktop.org
Fri Oct 7 09:38:39 PDT 2011


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

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Oct  7 10:38:30 2011 -0600

intel: silence uninitialized var warning

Reviewed-by: Chad Versace <chad at chad-versace.us>

---

 src/mesa/drivers/dri/intel/intel_decode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_decode.c b/src/mesa/drivers/dri/intel/intel_decode.c
index ac8d690..b4de42d 100644
--- a/src/mesa/drivers/dri/intel/intel_decode.c
+++ b/src/mesa/drivers/dri/intel/intel_decode.c
@@ -881,7 +881,7 @@ decode_3d_1d(uint32_t *data, int count,
 	     int *failures)
 {
     unsigned int len, i, c, idx, word, map, sampler, instr;
-    char *format, *zformat, *type;
+    char *format = "", *zformat, *type;
     uint32_t opcode;
 
     struct {



More information about the mesa-commit mailing list