Browse Source

dri: Fix potential null pointer dereference in driBindContext.

tags/mesa_7_7_rc1
Vinson Lee 16 years ago
parent
commit
919898e92f
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/mesa/drivers/dri/common/dri_util.c

+ 2
- 1
src/mesa/drivers/dri/common/dri_util.c View File

@@ -167,11 +167,12 @@ static int driBindContext(__DRIcontext *pcp,
__DRIdrawable *pdp,
__DRIdrawable *prp)
{
__DRIscreenPrivate *psp = pcp->driScreenPriv;
__DRIscreenPrivate *psp;

/* Bind the drawable to the context */

if (pcp) {
psp = pcp->driScreenPriv;
pcp->driDrawablePriv = pdp;
pcp->driReadablePriv = prp;
if (pdp) {

Loading…
Cancel
Save