diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-12-08 23:36:20 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-12-08 23:36:20 +0100 |
commit | 2af3baffb58f22ddf3ac5944d2677b981763e03d (patch) | |
tree | 70d1dfc4ea490b053072b2ea68ad250b8a96972e /fitz/base_object.c | |
parent | 62ff8552500694c96b998d2aac6fbc47ab2d9395 (diff) | |
download | mupdf-2af3baffb58f22ddf3ac5944d2677b981763e03d.tar.xz |
Stylistic changes when testing pointer values for NULL.
Also: use 'cannot' instead of 'failed to' in error messages.
Diffstat (limited to 'fitz/base_object.c')
-rw-r--r-- | fitz/base_object.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fitz/base_object.c b/fitz/base_object.c index 8c79e4c6..957396ea 100644 --- a/fitz/base_object.c +++ b/fitz/base_object.c @@ -136,7 +136,7 @@ fz_new_indirect(fz_context *ctx, int num, int gen, void *xref) fz_obj * fz_keep_obj(fz_obj *obj) { - assert(obj != NULL); + assert(obj); obj->refs ++; return obj; } @@ -358,7 +358,7 @@ fz_objcmp(fz_obj *a, fz_obj *b) static char * fz_objkindstr(fz_obj *obj) { - if (obj == NULL) + if (!obj) return "<NULL>"; switch (obj->kind) { @@ -834,7 +834,7 @@ fz_free_dict(fz_obj *obj) void fz_drop_obj(fz_obj *obj) { - if (obj == NULL) + if (!obj) return; if (--obj->refs) return; |