add missing null-pointer checks

This commit is contained in:
Ben Byer 2007-11-04 04:50:26 -08:00
parent 4d0f35c81d
commit 181468db92
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ SafeAlphaComposite (CARD8 op,
pDst->format = PICT_a8r8g8b8;
}
if (pSrc->pDrawable && pMask->pDrawable &&
if (pSrc && pMask && pSrc->pDrawable && pMask->pDrawable &&
!pSrc->transform && !pMask->transform &&
!pSrc->alphaMap && !pMask->alphaMap &&
!pMask->repeat && !pMask->componentAlpha && !pDst->alphaMap &&