summaryrefslogtreecommitdiff
path: root/src/draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/draw.c')
-rw-r--r--src/draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/draw.c b/src/draw.c
index 355e246..85a22d0 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -168,7 +168,7 @@ bevel_pixmap(Pixmap p, int w, int h, Imlib_Border * bord, unsigned char up)
real_depth = Xdepth;
}
ximg = XGetImage(Xdisplay, p, 0, 0, w, h, -1, ZPixmap);
- if (ximg == NULL) {
+ if (!ximg) {
return;
}
/* Determine bitshift and bitmask values */