summaryrefslogtreecommitdiff
path: root/miext
diff options
context:
space:
mode:
authorBen Byer <bbyer@bbyer.local>2007-11-04 04:50:26 -0800
committerBen Byer <bbyer@bbyer.local>2007-11-04 04:50:26 -0800
commit181468db92d44a58080fc9a76e46dfc7011bf9f1 (patch)
tree8829915708808b1d87ab26ff8e9ddc5ec29d7b2f /miext
parent4d0f35c81df307609b29c0f12aa1b4c6ee6fd8d2 (diff)
add missing null-pointer checks
Diffstat (limited to 'miext')
-rw-r--r--miext/rootless/safeAlpha/safeAlphaPicture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miext/rootless/safeAlpha/safeAlphaPicture.c b/miext/rootless/safeAlpha/safeAlphaPicture.c
index 0ed2f3e79..57f1ae187 100644
--- a/miext/rootless/safeAlpha/safeAlphaPicture.c
+++ b/miext/rootless/safeAlpha/safeAlphaPicture.c
@@ -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 &&