From e10c762c7059a0552d1a41f661a193117cf61308 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 13 Mar 2022 20:02:13 +0100 Subject: [PATCH] Style: Avoid compiler warning --- style.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2