From: Piotr Dziwinski Date: Sat, 23 Feb 2013 12:14:45 +0000 (+0100) Subject: glx: fix uninitialized var in __glXDRIscreenProbe X-Git-Tag: xorg-server-1.14.99.1~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc3d1a5a6120e721a46c67446ba68f5596055633;p=platform%2Fupstream%2Fxorg-server.git glx: fix uninitialized var in __glXDRIscreenProbe Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=59825 Signed-off-by: Piotr Dziwinski Reviewed-by: Keith Packard Signed-off-by: Keith Packard --- diff --git a/glx/glxdri.c b/glx/glxdri.c index da46468..a997e2f 100644 --- a/glx/glxdri.c +++ b/glx/glxdri.c @@ -971,6 +971,8 @@ __glXDRIscreenProbe(ScreenPtr pScreen) size_t buffer_size; ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); + framebuffer.base = NULL; + if (!xf86LoaderCheckSymbol("DRIQueryDirectRenderingCapable") || !DRIQueryDirectRenderingCapable(pScreen, &isCapable) || !isCapable) { LogMessage(X_INFO,