summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--do_traps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/do_traps.c b/do_traps.c
index 0fd7056..0f5d168 100644
--- a/do_traps.c
+++ b/do_traps.c
@@ -165,6 +165,8 @@ InitFixedTraps(XParms xp, Parms p, int64_t reps)
break;
}
maskFormat = XRenderFindStandardFormat (xp->d, std_fmt);
+ if (!maskFormat)
+ return 0;
maskPixmap = XCreatePixmap (xp->d, xp->w, WIDTH, HEIGHT, depth);