Fix typos in last change

* src/font.c (font_dynamic_unparse_xlfd): Remove unused variable.
(Ffont_xlfd_name): Initialize name.
This commit is contained in:
Po Lu 2023-09-08 11:00:10 +08:00
parent 3fb671c88e
commit 46249f6139

View file

@ -1295,7 +1295,7 @@ font_dynamic_unparse_xlfd (Lisp_Object font, int pixel_size)
char *p;
const char *f[XLFD_REGISTRY_INDEX + 1];
Lisp_Object val;
int i, j, len;
int i, j;
char *name;
USE_SAFE_ALLOCA;
@ -4452,6 +4452,7 @@ the consecutive wildcards are folded into one. */)
{
if (NILP (fold_wildcards))
return font_name;
name = name_buffer;
lispstpcpy (name, font_name);
namelen = SBYTES (font_name);
goto done;