From e1b5d3e5e7f157ab769c40ad2efdc1281c25a03a Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 8 Feb 2011 14:18:53 -0500 Subject: [PATCH] glxproxy: warning fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit glxcmds.c: In function ‘CreateGLXPixmap’: glxcmds.c:1641:22: warning: ‘pGlxScreen’ may be used uninitialized in this function Reviewed-by: Alan Coopersmith Signed-off-by: Adam Jackson --- hw/dmx/glxProxy/glxcmds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/dmx/glxProxy/glxcmds.c b/hw/dmx/glxProxy/glxcmds.c index d38319a27..6196540ca 100644 --- a/hw/dmx/glxProxy/glxcmds.c +++ b/hw/dmx/glxProxy/glxcmds.c @@ -1733,6 +1733,7 @@ static int CreateGLXPixmap(__GLXclientState *cl, else { pVisual = NULL; pGlxVisual = NULL; + pGlxScreen = &__glXActiveScreens[pDraw->pScreen->myNum]; } pGlxPixmap = (__GLXpixmap *) malloc(sizeof(__GLXpixmap));