Mesa (mesa_7_7_branch): dri: Initialize variable in driBindContext.

Ian Romanick idr at kemper.freedesktop.org
Wed Dec 16 18:17:43 UTC 2009


Module: Mesa
Branch: mesa_7_7_branch
Commit: 7430c3ac35ed47227c47f8f5ed184e6e754ea5e7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7430c3ac35ed47227c47f8f5ed184e6e754ea5e7

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Dec 15 13:04:25 2009 -0800

dri: Initialize variable in driBindContext.

---

 src/mesa/drivers/dri/common/dri_util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index da81ec9..547f18a 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -167,7 +167,7 @@ static int driBindContext(__DRIcontext *pcp,
 			  __DRIdrawable *pdp,
 			  __DRIdrawable *prp)
 {
-    __DRIscreenPrivate *psp;
+    __DRIscreenPrivate *psp = NULL;
 
     /* Bind the drawable to the context */
 




More information about the mesa-commit mailing list