]> git.eshelyaron.com Git - emacs.git/commitdiff
Pacify GCC 12.1.1 -Wanalyzer-use-of-uninitialized-value
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2022 20:37:37 +0000 (13:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2022 20:39:48 +0000 (13:39 -0700)
* 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

index 684c28ab21a87be4878eeac35147283d586ed356..74237e8aa881ace396e37dce7cac34146314831a 100644 (file)
@@ -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). */