summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2013-02-23 13:14:45 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2013-07-11 09:46:11 +1000
commit3608d9f3dd6ae1d23e23294e9a56cb8158e65d19 (patch)
tree2c192cfe678f732af62b89dc3c6801263c886975
parent2767d9a17d62aede7cabac589c3388078bdb6022 (diff)
glx: fix uninitialized var in __glXDRIscreenProbe
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=59825 Signed-off-by: Piotr Dziwinski <piotrdz@gmail.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com> (cherry picked from commit cc3d1a5a6120e721a46c67446ba68f5596055633)
-rw-r--r--glx/glxdri.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/glx/glxdri.c b/glx/glxdri.c
index 5891a68c5..41424afdd 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,