From 24b2cc177acd47fdac15db1fa73afbc412eb1e0a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 13 Jun 2022 13:37:37 -0700 Subject: [PATCH] Pacify GCC 12.1.1 -Wanalyzer-use-of-uninitialized-value MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * src/xfont.c (xfont_list_pattern): Initialize a local. Although I’m not sure this is needed, it doesn’t change behavior (except possibly to make undefined behavior defined). --- src/xfont.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xfont.c b/src/xfont.c index 684c28ab21a..74237e8aa88 100644 --- a/src/xfont.c +++ b/src/xfont.c @@ -295,7 +295,7 @@ xfont_list_pattern (Display *display, const char *pattern, { Lisp_Object list = Qnil; Lisp_Object chars = Qnil; - struct charset *encoding, *repertory = NULL; + struct charset *encoding = NULL, *repertory = NULL; int i, limit, num_fonts; char **names; /* Large enough to decode the longest XLFD (255 bytes). */ -- 2.39.2