summaryrefslogtreecommitdiff
path: root/source/fitz/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/image.c')
-rw-r--r--source/fitz/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/image.c b/source/fitz/image.c
index 89798bf2..2716cf56 100644
--- a/source/fitz/image.c
+++ b/source/fitz/image.c
@@ -901,7 +901,7 @@ fz_new_image_from_buffer(fz_context *ctx, fz_buffer *buffer)
fz_colorspace *cspace;
size_t len = buffer->len;
unsigned char *buf = buffer->data;
- fz_image *image;
+ fz_image *image = NULL;
int type;
if (len < 8)
@@ -981,7 +981,7 @@ fz_image *
fz_new_image_from_file(fz_context *ctx, const char *path)
{
fz_buffer *buffer;
- fz_image *image;
+ fz_image *image = NULL;
buffer = fz_read_file(ctx, path);
fz_try(ctx)