From f769f1102f17e10677f2d6456e96f78444d3ef0a Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Sun, 27 Mar 2022 06:51:12 +0300 Subject: [PATCH] htmltable: initialize a variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Squash warning: ‘mxysize’ may be used uninitialized in this function [-Wmaybe-uninitialized] --- lib/common/htmltable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/htmltable.c b/lib/common/htmltable.c index 83c021cc7..c9cf88e08 100644 --- a/lib/common/htmltable.c +++ b/lib/common/htmltable.c @@ -951,7 +951,7 @@ static int size_html_txt(GVC_t *gvc, htmltxt_t * ftxt, htmlenv_t * env) double width; textspan_t lp; textfont_t tf = {NULL,NULL,NULL,0.0,0,0}; - double maxoffset, mxysize; + double maxoffset, mxysize = 0.0; bool simple = true; // one item per span, same font size/face, no flags double prev_fsize = -1; char* prev_fname = NULL; -- 2.40.0