Mesa (mesa_7_6_branch): rbug: Initialize variable in rbug_get_message.

Vinson Lee vlee at kemper.freedesktop.org
Tue Dec 8 08:29:39 UTC 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 7f8e22aa29b7340d51b1f2e16d55a035c0f9b851
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f8e22aa29b7340d51b1f2e16d55a035c0f9b851

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Dec  8 00:26:37 2009 -0800

rbug: Initialize variable in rbug_get_message.

Silences uninitialized variable warning.

---

 src/gallium/auxiliary/rbug/rbug_connection.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/rbug/rbug_connection.c b/src/gallium/auxiliary/rbug/rbug_connection.c
index 52acb70..ae4e27f 100644
--- a/src/gallium/auxiliary/rbug/rbug_connection.c
+++ b/src/gallium/auxiliary/rbug/rbug_connection.c
@@ -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;




More information about the mesa-commit mailing list