emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/font.c,v


From: Andreas Schwab
Subject: [Emacs-diffs] Changes to emacs/src/font.c,v
Date: Sun, 15 Jun 2008 10:13:26 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Andreas Schwab <schwab> 08/06/15 10:13:24

Index: font.c
===================================================================
RCS file: /sources/emacs/emacs/src/font.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -b -r1.51 -r1.52
--- font.c      13 Jun 2008 14:29:46 -0000      1.51
+++ font.c      15 Jun 2008 10:13:24 -0000      1.52
@@ -3272,7 +3272,7 @@
   if (! EQ (new_drivers, Qt))
     {
       /* Re-order the driver list according to new_drivers.  */
-      struct font_driver_list **list_table, *list;
+      struct font_driver_list **list_table, **next;
       Lisp_Object tail;
       int i;
 
@@ -3290,15 +3290,13 @@
          list_table[i] = list;
       list_table[i] = NULL;
 
-      f->font_driver_list = list = NULL;
+      next = &f->font_driver_list;
       for (i = 0; list_table[i]; i++)
        {
-         if (list)
-           list->next = list_table[i], list = list->next;
-         else
-           f->font_driver_list = list = list_table[i];
+         *next = list_table[i];
+         next = &(*next)->next;
        }
-      list->next = NULL;
+      *next = NULL;
     }
 
   for (list = f->font_driver_list; list; list = list->next)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]