[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 7d7f3d9: Pacify svg_load_image compiler warning
From: |
Lars Ingebrigtsen |
Subject: |
master 7d7f3d9: Pacify svg_load_image compiler warning |
Date: |
Tue, 7 Dec 2021 19:53:10 -0500 (EST) |
branch: master
commit 7d7f3d98dc0380d62ce1b1f5d051d25459134a9c
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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 cd0f3f6..49b14c4 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,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 7d7f3d9: Pacify svg_load_image compiler warning,
Lars Ingebrigtsen <=