summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2009-08-15 16:02:12 +0200
committerTor Andersson <tor@ghostscript.com>2009-08-15 16:02:12 +0200
commitfaa6198507e897a20b56689ca9f8b94c8c5ec707 (patch)
treef69e0d946b783622009f730a5a21cacbff16e3b8
parent81142a4014d9027e20f5b9d568b63782f75db5f2 (diff)
downloadmupdf-faa6198507e897a20b56689ca9f8b94c8c5ec707.tar.xz
Check for NULL in fz_objcmp.
-rw-r--r--fitz/obj_simple.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fitz/obj_simple.c b/fitz/obj_simple.c
index 2611329e..69283f26 100644
--- a/fitz/obj_simple.c
+++ b/fitz/obj_simple.c
@@ -253,6 +253,10 @@ fz_objcmp(fz_obj *a, fz_obj *b)
if (a == b)
return 0;
+
+ if (!a || !b)
+ return 1;
+
if (a->kind != b->kind)
return 1;