summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-06-13 13:37:37 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-06-13 13:39:48 -0700
commit24b2cc177acd47fdac15db1fa73afbc412eb1e0a (patch)
tree0085f0325fe72f86df1616ed0863a75f7b6235b7
parentde6601e62efd959cf74455cfd8030f60448cd713 (diff)
downloademacs-24b2cc177acd47fdac15db1fa73afbc412eb1e0a.tar.gz
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).
-rw-r--r--src/xfont.c2
1 files changed, 1 insertions, 1 deletions
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). */