projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f756924
)
fix coverity 926: use before NULL check
author
Dave Airlie
<airliedfreedesktop.org>
Thu, 23 Mar 2006 04:13:37 +0000
(
04:13
+0000)
committer
Dave Airlie
<airliedfreedesktop.org>
Thu, 23 Mar 2006 04:13:37 +0000
(
04:13
+0000)
src/mesa/drivers/dri/common/dri_util.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/common/dri_util.c
b/src/mesa/drivers/dri/common/dri_util.c
index d7640759dee55ed075acc1f618c64c9e34f52b70..883a89c8886e5671a23e9f19840698a55bb46905 100644
(file)
--- a/
src/mesa/drivers/dri/common/dri_util.c
+++ b/
src/mesa/drivers/dri/common/dri_util.c
@@
-659,10
+659,12
@@
static void
driDestroyDrawable(__DRInativeDisplay *dpy, void *drawablePrivate)
{
__DRIdrawablePrivate *pdp = (__DRIdrawablePrivate *) drawablePrivate;
- __DRIscreenPrivate *psp
= pdp->driScreenPriv
;
- int scrn
= psp->myNum
;
+ __DRIscreenPrivate *psp;
+ int scrn;
if (pdp) {
+ psp = pdp->driScreenPriv;
+ scrn = psp->myNum;
(*psp->DriverAPI.DestroyBuffer)(pdp);
if ((*dri_interface->windowExists)(dpy, pdp->draw))
(void)(*dri_interface->destroyDrawable)(dpy, scrn, pdp->draw);