dri: Initialize variable in driBindContext.
authorVinson Lee <vlee@vmware.com>
Tue, 15 Dec 2009 21:04:25 +0000 (13:04 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 15 Dec 2009 21:04:25 +0000 (13:04 -0800)
src/mesa/drivers/dri/common/dri_util.c

index da81ec9..547f18a 100644 (file)
@@ -167,7 +167,7 @@ static int driBindContext(__DRIcontext *pcp,
                          __DRIdrawable *pdp,
                          __DRIdrawable *prp)
 {
-    __DRIscreenPrivate *psp;
+    __DRIscreenPrivate *psp = NULL;
 
     /* Bind the drawable to the context */