(Fclear_font_cache): Pass correct cache argument to
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 19 Dec 2009 09:57:22 +0000 (09:57 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 19 Dec 2009 09:57:22 +0000 (09:57 +0000)
font_clear_cache.

src/ChangeLog
src/font.c

index 0e1e60a..efde576 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-19  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * font.c (Fclear_font_cache): Pass correct cache argument to
+       font_clear_cache.
+
 2009-12-16  Andreas Schwab  <schwab@linux-m68k.org>
 
        * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
index e9ae85a..3a8f73a 100644 (file)
@@ -4479,15 +4479,15 @@ DEFUN ("clear-font-cache", Fclear_font_cache, Sclear_font_cache, 0, 0, 0,
        if (driver_list->on)
          {
            Lisp_Object cache = driver_list->driver->get_cache (f);
-           Lisp_Object val;
+           Lisp_Object val, tmp;
 
            val = XCDR (cache);
            while (! NILP (val)
                   && ! EQ (XCAR (XCAR (val)), driver_list->driver->type))
              val = XCDR (val);
            font_assert (! NILP (val));
-           val = XCDR (XCAR (val));
-           if (XINT (XCAR (val)) == 0)
+           tmp = XCDR (XCAR (val));
+           if (XINT (XCAR (tmp)) == 0)
              {
                font_clear_cache (f, XCAR (val), driver_list->driver);
                XSETCDR (cache, XCDR (val));