diff options
Diffstat (limited to 'source/fitz/memory.c')
-rw-r--r-- | source/fitz/memory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/fitz/memory.c b/source/fitz/memory.c index d5ea7750..5aa8d78c 100644 --- a/source/fitz/memory.c +++ b/source/fitz/memory.c @@ -67,6 +67,9 @@ fz_malloc(fz_context *ctx, size_t size) void * fz_malloc_no_throw(fz_context *ctx, size_t size) { + if (size == 0) + return NULL; + return do_scavenging_malloc(ctx, size); } |