From b72cf33e3681bdcd488fa5a580466e28766475fb Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Mon, 7 May 2018 12:36:50 +0800 Subject: pnm: Remember to always initialize variable. --- source/fitz/load-pnm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/fitz/load-pnm.c b/source/fitz/load-pnm.c index 36842eda..be7a6232 100644 --- a/source/fitz/load-pnm.c +++ b/source/fitz/load-pnm.c @@ -686,7 +686,7 @@ pnm_read_image(fz_context *ctx, struct info *pnm, const unsigned char *p, size_t { const unsigned char *e = p + total; char signature[3] = { 0 }; - fz_pixmap *pix; + fz_pixmap *pix = NULL; while (p < e && ((!onlymeta && subimage >= 0) || onlymeta)) { -- cgit v1.2.3