emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 24b2cc177a 2/2: Pacify GCC 12.1.1 -Wanalyzer-use-of-uninitialized


From: Paul Eggert
Subject: master 24b2cc177a 2/2: Pacify GCC 12.1.1 -Wanalyzer-use-of-uninitialized-value
Date: Mon, 13 Jun 2022 16:39:56 -0400 (EDT)

branch: master
commit 24b2cc177acd47fdac15db1fa73afbc412eb1e0a
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>

    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).
---
 src/xfont.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfont.c b/src/xfont.c
index 684c28ab21..74237e8aa8 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). */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]