]> git.eshelyaron.com Git - emacs.git/commitdiff
Pacify svg_load_image compiler warning
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 8 Dec 2021 00:52:39 +0000 (01:52 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 8 Dec 2021 00:53:05 +0000 (01:53 +0100)
* src/image.c (svg_load_image): Fix compiler warning from gcc
(Debian 11.2.0-10).

src/image.c

index cd0f3f697f8298a35b4272c644bf116531b82ecc..49b14c49154aa2ffa3e5981a305613ca646e3d58 100644 (file)
@@ -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,