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>
This commit is contained in:
parent
3b9de273a9
commit
e1b5d3e5e7
|
@ -1733,6 +1733,7 @@ static int CreateGLXPixmap(__GLXclientState *cl,
|
||||||
else {
|
else {
|
||||||
pVisual = NULL;
|
pVisual = NULL;
|
||||||
pGlxVisual = NULL;
|
pGlxVisual = NULL;
|
||||||
|
pGlxScreen = &__glXActiveScreens[pDraw->pScreen->myNum];
|
||||||
}
|
}
|
||||||
|
|
||||||
pGlxPixmap = (__GLXpixmap *) malloc(sizeof(__GLXpixmap));
|
pGlxPixmap = (__GLXpixmap *) malloc(sizeof(__GLXpixmap));
|
||||||
|
|
Loading…
Reference in New Issue