svga: Silence uninitialized variable warning.
authorVinson Lee <vlee@vmware.com>
Sat, 13 Feb 2010 06:33:37 +0000 (22:33 -0800)
committerVinson Lee <vlee@vmware.com>
Sat, 13 Feb 2010 06:33:37 +0000 (22:33 -0800)
src/gallium/drivers/svga/svgadump/svga_shader_dump.c

index d2bfb439f38e56d0b163efd2dcda634b9ea31dfd..705ca29e8f501b34d1ba48bd95f2bc00f4f6d27d 100644 (file)
@@ -360,7 +360,7 @@ dump_dstreg(struct sh_dstreg dstreg,
    union {
       struct sh_reg reg;
       struct sh_dstreg dstreg;
-   } u;
+   } u = { { 0 } };
 
    assert( (dstreg.modifier & (SVGA3DDSTMOD_SATURATE | SVGA3DDSTMOD_PARTIALPRECISION)) == dstreg.modifier );