From: Paul Eggert Date: Mon, 13 Jun 2022 20:37:37 +0000 (-0700) Subject: Pacify GCC 12.1.1 -Wanalyzer-use-of-uninitialized-value X-Git-Tag: emacs-29.0.90~1910^2~27 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=24b2cc177acd47fdac15db1fa73afbc412eb1e0a;p=emacs.git Pacify GCC 12.1.1 -Wanalyzer-use-of-uninitialized-value * 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). --- 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). */