[PATCH] glx: fix uninitialized var in __glXDRIscreenProbe

Piotr Dziwinski piotrdz at gmail.com
Sat Feb 23 04:14:45 PST 2013


Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=59825

Signed-off-by: Piotr Dziwinski <piotrdz at gmail.com>
---
 glx/glxdri.c | 2 ++
 1 file changed, 2 insertions(+)

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,
-- 
1.8.1.3



More information about the xorg-devel mailing list