]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix typos in last change
authorPo Lu <luangruo@yahoo.com>
Fri, 8 Sep 2023 03:00:10 +0000 (11:00 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 8 Sep 2023 03:01:30 +0000 (11:01 +0800)
* src/font.c (font_dynamic_unparse_xlfd): Remove unused variable.
(Ffont_xlfd_name): Initialize name.

src/font.c

index 94eff4960ce959ef50051b1e7f3e3e2638dd8725..d936792946759951cef40d67ebc251bfc16f18e7 100644 (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;