From 369e95c1df681537492ac4132fcc439a66dd7884 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 26 Aug 2010 01:34:13 +0000 Subject: Revert and re-apply badnull patch Revert previous patch generated by badnull.cocci script, and apply the new one. The main difference is that assert and assert-like functions are not touched anymore. SVN revision: 51650 --- src/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/draw.c') 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 */ -- cgit v1.2.1