summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2011-02-08 14:44:03 -0500
committerAdam Jackson <ajax@redhat.com>2011-02-23 13:39:03 -0500
commitdad2712c9328e113db4de768a12a8dafa6c177e9 (patch)
tree01372293e3395ed85b54731f37bba6c253f5612c
parent4270157bac645550e2c0afe89479c0bfe9d53447 (diff)
glxproxy: warning fix
glxsingle.c: In function ‘__glXDisp_ReadPixels’: glxsingle.c:760:11: warning: ‘buf’ may be used uninitialized in this function Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--hw/dmx/glxProxy/glxsingle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/dmx/glxProxy/glxsingle.c b/hw/dmx/glxProxy/glxsingle.c
index 4c473ff13..ae8d65f51 100644
--- a/hw/dmx/glxProxy/glxsingle.c
+++ b/hw/dmx/glxProxy/glxsingle.c
@@ -811,6 +811,7 @@ int __glXDisp_ReadPixels(__GLXclientState *cl, GLbyte *pc)
}
else {
buf_size = 0;
+ buf = NULL;
}
if (buf_size > 0) {