diff options
author | Adam Jackson <ajax@redhat.com> | 2011-02-08 14:18:53 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2011-02-23 13:39:03 -0500 |
commit | e1b5d3e5e7f157ab769c40ad2efdc1281c25a03a (patch) | |
tree | 00d957ded0bae0670986f61271d8d69f59a6fd84 | |
parent | 3b9de273a94fb68de51238c20c3182396aa41b84 (diff) |
glxproxy: warning fix
glxcmds.c: In function ‘CreateGLXPixmap’:
glxcmds.c:1641:22: warning: ‘pGlxScreen’ 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/glxcmds.c | 1 |
1 files changed, 1 insertions, 0 deletions
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)); |