summaryrefslogtreecommitdiff
path: root/src/glx/x11
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2005-08-05 23:13:13 +0000
committerIan Romanick <idr@us.ibm.com>2005-08-05 23:13:13 +0000
commit23a4f50c5b2080e97d1a48d7fb693ad8269fe0e7 (patch)
treeab7114b203ec8d49aec9efd43e31cf49822ecf6e /src/glx/x11
parent6965f2cb0a481e88fb87f34f82d775bc2080a460 (diff)
Fixes bugzilla #1730.
Make sure that all the values used in the clean-up code are initialized at some point. It is still unclear to me as to why GCC does not complain. I suspect the problem may be due to the depth of if-statement nesting.
Diffstat (limited to 'src/glx/x11')
-rw-r--r--src/glx/x11/glxext.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index bb6d6ccd0c..52c113da4f 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -728,7 +728,7 @@ CallCreateNewScreen(Display *dpy, int scrn, __DRIscreen *psc,
__DRIscreenPrivate *psp = NULL;
#ifndef GLX_USE_APPLEGL
drm_handle_t hSAREA;
- drmAddress pSAREA;
+ drmAddress pSAREA = MAP_FAILED;
char *BusID;
__DRIversion ddx_version;
__DRIversion dri_version;
@@ -749,6 +749,7 @@ CallCreateNewScreen(Display *dpy, int scrn, __DRIscreen *psc,
err_msg = "XF86DRIOpenConnection";
err_extra = NULL;
+ framebuffer.base = MAP_FAILED;
framebuffer.dev_priv = NULL;
if (XF86DRIOpenConnection(dpy, scrn, &hSAREA, &BusID)) {