diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-06-24 16:52:07 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2017-06-27 21:25:44 +0800 |
commit | 54c4693004f33050baa0576ceaa71f5d5313b7bf (patch) | |
tree | 96299add51498d9be48d8a2b026f108dde083c04 /source/pdf/pdf-resources.c | |
parent | aa3b51f086196b73d6461b271be642a373da63fd (diff) | |
download | mupdf-54c4693004f33050baa0576ceaa71f5d5313b7bf.tar.xz |
pdf: Avoid causing segfault if image object cannot be preloaded.
In this case the object might not yet be set, but
is still dropped upon exception.
Diffstat (limited to 'source/pdf/pdf-resources.c')
-rw-r--r-- | source/pdf/pdf-resources.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-resources.c b/source/pdf/pdf-resources.c index 67008159..c401a16f 100644 --- a/source/pdf/pdf-resources.c +++ b/source/pdf/pdf-resources.c @@ -27,7 +27,7 @@ static void pdf_preload_image_resources(fz_context *ctx, pdf_document *doc) { int len, k; - pdf_obj *obj; + pdf_obj *obj = NULL; pdf_obj *type; pdf_obj *res = NULL; fz_image *image = NULL; |