intel: silence uninitialized var warning
authorBrian Paul <brianp@vmware.com>
Fri, 7 Oct 2011 16:38:30 +0000 (10:38 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Oct 2011 16:38:30 +0000 (10:38 -0600)
Reviewed-by: Chad Versace <chad@chad-versace.us>
src/mesa/drivers/dri/intel/intel_decode.c

index ac8d69074abd0ddd9f6e55f35d6a486e8a7da714..b4de42dcfa13e0f995e0fed08c2546cb6d86afc5 100644 (file)
@@ -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 {