From a27d9903ec238af6e4c1c59de1e1dae817b4f028 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Wed, 6 Sep 2017 20:16:16 +0200 Subject: Initialize variables to appease clang scan-build. --- source/html/css-parse.c | 2 +- source/html/html-doc.c | 2 +- source/html/html-layout.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source/html') diff --git a/source/html/css-parse.c b/source/html/css-parse.c index 8dbc4dae..8242279c 100644 --- a/source/html/css-parse.c +++ b/source/html/css-parse.c @@ -27,7 +27,7 @@ FZ_NORETURN static void fz_css_error(struct lexbuf *buf, const char *msg) fz_css *fz_new_css(fz_context *ctx) { fz_pool *pool = fz_new_pool(ctx); - fz_css *css; + fz_css *css = NULL; fz_try(ctx) { diff --git a/source/html/html-doc.c b/source/html/html-doc.c index 566aeac6..8cfa233f 100644 --- a/source/html/html-doc.c +++ b/source/html/html-doc.c @@ -171,7 +171,7 @@ static fz_document * htdoc_open_document(fz_context *ctx, const char *filename) { char dirname[2048]; - fz_buffer *buf; + fz_buffer *buf = NULL; html_document *doc; fz_dirname(dirname, filename, sizeof dirname); 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; -- cgit v1.2.3