rbug: Initialize variable in rbug_get_message.
authorVinson Lee <vlee@vmware.com>
Tue, 8 Dec 2009 08:26:37 +0000 (00:26 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 8 Dec 2009 08:28:50 +0000 (00:28 -0800)
Silences uninitialized variable warning.

src/gallium/auxiliary/rbug/rbug_connection.c

index 52acb700af9575cfc361695e53f6ba060ac0825c..ae4e27f9f6b99dd6b3122aa4d1e781f610ae2e21 100644 (file)
@@ -87,6 +87,7 @@ rbug_get_message(struct rbug_connection *c, uint32_t *serial)
    if (!data) {
       return NULL;
    }
+   data->opcode = 0;
 
    do {
       uint8_t *ptr = ((uint8_t*)data) + read;