diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-09-06 20:16:16 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2017-09-07 20:40:38 +0800 |
commit | a27d9903ec238af6e4c1c59de1e1dae817b4f028 (patch) | |
tree | edab5a190abb4ee105d74e19cf5dc479fadf109a /source/fitz/output-png.c | |
parent | b096bed7b44f187eaacd8d8ee5f53a67d4aedda2 (diff) | |
download | mupdf-a27d9903ec238af6e4c1c59de1e1dae817b4f028.tar.xz |
Initialize variables to appease clang scan-build.
Diffstat (limited to 'source/fitz/output-png.c')
-rw-r--r-- | source/fitz/output-png.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/output-png.c b/source/fitz/output-png.c index b86ea648..afda42f3 100644 --- a/source/fitz/output-png.c +++ b/source/fitz/output-png.c @@ -89,7 +89,7 @@ png_write_icc(fz_context *ctx, png_band_writer *writer, const fz_colorspace *cs) int size; fz_buffer *buffer = fz_icc_data_from_icc_colorspace(ctx, cs); unsigned char *data; - unsigned char *chunk, *pos, *cdata; + unsigned char *pos, *cdata, *chunk = NULL; uLong bound; uLongf csize; uLong long_size; @@ -356,7 +356,7 @@ fz_buffer * fz_new_buffer_from_image_as_png(fz_context *ctx, fz_image *image, const fz_color_params *color_params) { fz_pixmap *pix = fz_get_pixmap_from_image(ctx, image, NULL, NULL, NULL, NULL); - fz_buffer *buf; + fz_buffer *buf = NULL; fz_try(ctx) buf = png_from_pixmap(ctx, pix, color_params, 1); |