summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2010-08-26 01:34:13 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2010-08-26 01:34:13 +0000
commit369e95c1df681537492ac4132fcc439a66dd7884 (patch)
tree3058d0f0bc0b6e2bfc578ce0120748c1f441c8b6 /utils
parentd3bb74d0299714ee4e410e52b7a14bd22d0b22c6 (diff)
downloadeterm-369e95c1df681537492ac4132fcc439a66dd7884.tar.gz
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
Diffstat (limited to 'utils')
-rw-r--r--utils/Esetroot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/Esetroot.c b/utils/Esetroot.c
index dbe6b37..137987e 100644
--- a/utils/Esetroot.c
+++ b/utils/Esetroot.c
@@ -181,7 +181,7 @@ main(int argc, char *argv[])
imlib_context_set_display(Xdisplay);
imlib_context_set_visual(DefaultVisual(Xdisplay, DefaultScreen(Xdisplay)));
im = imlib_load_image_immediately(fname);
- if (im == NULL) {
+ if (!im) {
fprintf(stderr, "%s: Unable to load image file \"%s\".\n", *argv, fname);
exit(1);
} else if (debug) {