]> mj.ucw.cz Git - leo.git/commitdiff
Style: Avoid compiler warning
authorMartin Mares <mj@ucw.cz>
Sun, 13 Mar 2022 19:02:13 +0000 (20:02 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 13 Mar 2022 19:02:13 +0000 (20:02 +0100)
style.c

diff --git a/style.c b/style.c
index d82c71213edb10571bdf9454a85937862cb77f59..a77988d9dba72e4a575bb1981a1e8c812720485b 100644 (file)
--- a/style.c
+++ b/style.c
@@ -246,7 +246,7 @@ void style_dump_prop(struct style_prop *s)
 
 void style_scale(struct style_info *si, double *wp, double *hp, prop_t width_prop, prop_t height_prop)
 {
-  double w, h;
+  double w=0, h=0;
   bool got_width = style_get_number(si, width_prop, &w);
   bool got_height = style_get_number(si, height_prop, &h);