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 da81ec9de510ece000cca5f5f003ac9590122ce1..547f18a009e324a0a8702bff709d7877e90b801d 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 */