From: Vinson Lee Date: Tue, 8 Dec 2009 08:26:37 +0000 (-0800) Subject: rbug: Initialize variable in rbug_get_message. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f8e22aa29b7340d51b1f2e16d55a035c0f9b851;p=mesa.git rbug: Initialize variable in rbug_get_message. Silences uninitialized variable warning. --- diff --git a/src/gallium/auxiliary/rbug/rbug_connection.c b/src/gallium/auxiliary/rbug/rbug_connection.c index 52acb700af9..ae4e27f9f6b 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;