tgsi: Silence uninitialized variable warnings.
authorVinson Lee <vlee@vmware.com>
Sat, 9 Jan 2010 04:22:17 +0000 (20:22 -0800)
committerVinson Lee <vlee@vmware.com>
Sat, 9 Jan 2010 04:24:05 +0000 (20:24 -0800)
src/gallium/auxiliary/tgsi/tgsi_exec.c

index b7569e74d4b6986ddf172eccdfbb707cb229f2e8..146000adeb4321a540fd39c1353c26a14e752574 100644 (file)
@@ -1209,11 +1209,19 @@ fetch_src_file_channel(
 
       default:
          assert( 0 );
+         chan->u[0] = 0;
+         chan->u[1] = 0;
+         chan->u[2] = 0;
+         chan->u[3] = 0;
       }
       break;
 
    default:
       assert( 0 );
+      chan->u[0] = 0;
+      chan->u[1] = 0;
+      chan->u[2] = 0;
+      chan->u[3] = 0;
    }
 }