diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-11-28 04:44:58 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-11-28 04:44:58 +0100 |
commit | 61666e7f6b1d2e839d43068d5c84c987e28ec859 (patch) | |
tree | f3a3f019ee8f7c962472e00ac35e466d2a58468a /fitz/obj_print.c | |
parent | a16d9e0c25ed986c57c521aa87d87f6c343218a7 (diff) | |
download | mupdf-61666e7f6b1d2e839d43068d5c84c987e28ec859.tar.xz |
Malloc cannot return null. Clean up in mupdf resource code.
Diffstat (limited to 'fitz/obj_print.c')
-rw-r--r-- | fitz/obj_print.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fitz/obj_print.c b/fitz/obj_print.c index fa582496..ad5bb344 100644 --- a/fitz/obj_print.c +++ b/fitz/obj_print.c @@ -325,8 +325,6 @@ fz_fprintobj(FILE *fp, fz_obj *obj, int tight) else { ptr = fz_malloc(n + 1); - if (!ptr) - return -1; fz_sprintobj(ptr, n + 1, obj, tight); fputs(ptr, fp); fputc('\n', fp); |