From: Martin Mares Date: Sun, 13 Mar 2022 19:02:13 +0000 (+0100) Subject: Style: Avoid compiler warning X-Git-Url: http://mj.ucw.cz/gitweb/?p=leo.git;a=commitdiff_plain;h=e10c762c7059a0552d1a41f661a193117cf61308 Style: Avoid compiler warning --- diff --git a/style.c b/style.c index d82c712..a77988d 100644 --- 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);