From dad2712c9328e113db4de768a12a8dafa6c177e9 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 8 Feb 2011 14:44:03 -0500 Subject: [PATCH] glxproxy: warning fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit glxsingle.c: In function ‘__glXDisp_ReadPixels’: glxsingle.c:760:11: warning: ‘buf’ may be used uninitialized in this function Reviewed-by: Alan Coopersmith Signed-off-by: Adam Jackson --- hw/dmx/glxProxy/glxsingle.c | 1 + 1 file changed, 1 insertion(+) 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) {