From 870f082d81cec56e8260bfc259cd62677343935d Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Sun, 27 Mar 2022 07:10:40 +0300 Subject: [PATCH] pango: initialize a variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Squash warning: ‘availfaces’ may be used uninitialized in this function Actually uninitialized value is not used because it is used in pair with family_name, but compiler still complains. So just add initializtion. --- plugin/pango/gvgetfontlist_pango.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/pango/gvgetfontlist_pango.c b/plugin/pango/gvgetfontlist_pango.c index d1dcc9011..dcf4f3a3b 100644 --- a/plugin/pango/gvgetfontlist_pango.c +++ b/plugin/pango/gvgetfontlist_pango.c @@ -329,7 +329,7 @@ static availfont_t *gv_get_ps_fontlist(PangoFontMap * fontmap) PangoFontFamily *family; fontdef_t* gv_ps_fontdef; int n_families; - int i, k, array_sz, availfaces; + int i, k, array_sz, availfaces = 0; availfont_t *gv_af_p, *gv_afs; const char *name; char *family_name; -- 2.40.0