mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-01 11:14:55 +00:00
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).
This commit is contained in:
parent
de6601e62e
commit
24b2cc177a
@ -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). */
|
||||
|
Loading…
Reference in New Issue
Block a user