summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-04-08 16:25:48 +0800
committerSebastian Rasmussen <sebras@gmail.com>2018-04-08 16:26:56 +0800
commite7cc5e1de83302579bc6aabcf132a9d269f7e5f8 (patch)
tree3a1a1628639c187428b5cc9d30ec6f16e6be1786 /source
parent50dc275b852c52375ad583bcfae2127dcc34e3e3 (diff)
downloadmupdf-e7cc5e1de83302579bc6aabcf132a9d269f7e5f8.tar.xz
Set pointers to NULL so they can be safely dropped.
Previously these were not set to NULL, which caused spurious segmentation errors.
Diffstat (limited to 'source')
-rw-r--r--source/pdf/pdf-stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-stream.c b/source/pdf/pdf-stream.c
index bf828bd0..e8ce2fab 100644
--- a/source/pdf/pdf-stream.c
+++ b/source/pdf/pdf-stream.c
@@ -362,8 +362,8 @@ pdf_open_inline_stream(fz_context *ctx, pdf_document *doc, pdf_obj *stmobj, int
void
pdf_load_compressed_inline_image(fz_context *ctx, pdf_document *doc, pdf_obj *dict, int length, fz_stream *file_stm, int indexed, fz_compressed_image *image)
{
- fz_stream *istm, *leech, *decomp;
- fz_pixmap *pixmap;
+ fz_stream *istm = NULL, *leech = NULL, *decomp = NULL;
+ fz_pixmap *pixmap = NULL;
fz_compressed_buffer *bc;
int dummy_l2factor = 0;