[Mesa-dev] [PATCH 1/5] intel: silence uninitialized var warning

Brian Paul brian.e.paul at gmail.com
Fri Oct 7 07:30:26 PDT 2011


From: Brian Paul <brianp at vmware.com>

---
 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 {
-- 
1.7.3.4



More information about the mesa-dev mailing list