From 7d7f3d98dc0380d62ce1b1f5d051d25459134a9c Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 8 Dec 2021 01:52:39 +0100 Subject: [PATCH] Pacify svg_load_image compiler warning * src/image.c (svg_load_image): Fix compiler warning from gcc (Debian 11.2.0-10). --- src/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image.c b/src/image.c index cd0f3f697f8..49b14c49154 100644 --- a/src/image.c +++ b/src/image.c @@ -10456,7 +10456,7 @@ svg_load_image (struct frame *f, struct image *img, char *contents, /* Get the image dimensions. */ #if LIBRSVG_CHECK_VERSION (2, 46, 0) - gdouble gviewbox_width, gviewbox_height; + gdouble gviewbox_width = 0, gviewbox_height = 0; gboolean has_viewbox = FALSE; # if LIBRSVG_CHECK_VERSION (2, 52, 1) has_viewbox = rsvg_handle_get_intrinsic_size_in_pixels (rsvg_handle, -- 2.39.2