From: Adam Jackson Date: Mon, 27 Dec 2004 22:57:05 +0000 (+0000) Subject: Fix read-from-uninitialized in s3vMakeCurrent() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6cca6a3b8f3572687544514be52fb400e578878;p=mesa.git Fix read-from-uninitialized in s3vMakeCurrent() --- diff --git a/src/mesa/drivers/dri/s3v/s3v_xmesa.c b/src/mesa/drivers/dri/s3v/s3v_xmesa.c index ee59eaff095..84072b14716 100644 --- a/src/mesa/drivers/dri/s3v/s3v_xmesa.c +++ b/src/mesa/drivers/dri/s3v/s3v_xmesa.c @@ -172,6 +172,7 @@ s3vMakeCurrent(__DRIcontextPrivate *driContextPriv, s3vContextPtr vmesa; __DRIdrawablePrivate *dPriv = driDrawPriv; + vmesa = (s3vContextPtr) dPriv->driContextPriv->driverPrivate; DEBUG(("s3vMakeCurrent\n"));