summaryrefslogtreecommitdiff
path: root/source/html/html-layout.c
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/html/html-layout.c
parentb096bed7b44f187eaacd8d8ee5f53a67d4aedda2 (diff)
downloadmupdf-a27d9903ec238af6e4c1c59de1e1dae817b4f028.tar.xz
Initialize variables to appease clang scan-build.
Diffstat (limited to 'source/html/html-layout.c')
-rw-r--r--source/html/html-layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/html/html-layout.c b/source/html/html-layout.c
index fe9fbf22..e5e4f597 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -2311,7 +2311,7 @@ load_fb2_images(fz_context *ctx, fz_xml *root)
const char *id = fz_xml_att(binary, "id");
char *b64 = NULL;
fz_buffer *buf = NULL;
- fz_image *img;
+ fz_image *img = NULL;
fz_var(b64);
fz_var(buf);
@@ -2673,7 +2673,7 @@ fz_html *
fz_parse_html(fz_context *ctx, fz_html_font_set *set, fz_archive *zip, const char *base_uri, fz_buffer *buf, const char *user_css)
{
fz_xml *xml;
- fz_html *html;
+ fz_html *html = NULL;
fz_css_match match;
struct genstate g;