summaryrefslogtreecommitdiff
path: root/src/ImUtil.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-04-06 16:52:46 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-04-06 16:52:46 -0700
commitc8c41614911be4fa222fa22478677d263b41c751 (patch)
treeeb09ec17cabe81955a38c73c415b8ee1c832ece3 /src/ImUtil.c
parentb336c3d0cc2aefc8926500cff5f76b5a3e803886 (diff)
downloadxorg-lib-libX11-c8c41614911be4fa222fa22478677d263b41c751.tar.gz
Fix a several sparse warnings: Using plain integer as NULL pointer
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'src/ImUtil.c')
-rw-r--r--src/ImUtil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ImUtil.c b/src/ImUtil.c
index e79ec155..35768563 100644
--- a/src/ImUtil.c
+++ b/src/ImUtil.c
@@ -374,7 +374,7 @@ XImage *XCreateImage (
if (image_bytes_per_line == 0) {
image->bytes_per_line = min_bytes_per_line;
} else if (image_bytes_per_line < min_bytes_per_line) {
- return 0;
+ return NULL;
} else {
image->bytes_per_line = image_bytes_per_line;
}