summaryrefslogtreecommitdiff
path: root/source/svg
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-09-06 20:16:16 +0200
committerSebastian Rasmussen <sebras@gmail.com>2017-09-07 20:40:38 +0800
commita27d9903ec238af6e4c1c59de1e1dae817b4f028 (patch)
treeedab5a190abb4ee105d74e19cf5dc479fadf109a /source/svg
parentb096bed7b44f187eaacd8d8ee5f53a67d4aedda2 (diff)
downloadmupdf-a27d9903ec238af6e4c1c59de1e1dae817b4f028.tar.xz
Initialize variables to appease clang scan-build.
Diffstat (limited to 'source/svg')
-rw-r--r--source/svg/svg-doc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/svg/svg-doc.c b/source/svg/svg-doc.c
index 2a9f061e..d89093a3 100644
--- a/source/svg/svg-doc.c
+++ b/source/svg/svg-doc.c
@@ -108,7 +108,7 @@ static fz_document *
svg_open_document_with_stream(fz_context *ctx, fz_stream *file)
{
fz_buffer *buf;
- fz_document *doc;
+ fz_document *doc = NULL;
buf = fz_read_all(ctx, file, 0);
fz_try(ctx)
@@ -126,7 +126,7 @@ fz_display_list *
fz_new_display_list_from_svg(fz_context *ctx, fz_buffer *buf, float *w, float *h)
{
fz_document *doc;
- fz_display_list *list;
+ fz_display_list *list = NULL;
doc = svg_open_document_with_buffer(ctx, buf);
fz_try(ctx)
@@ -147,7 +147,7 @@ fz_image *
fz_new_image_from_svg(fz_context *ctx, fz_buffer *buf)
{
fz_display_list *list;
- fz_image *image;
+ fz_image *image = NULL;
float w, h;
list = fz_new_display_list_from_svg(ctx, buf, &w, &h);