+2008-06-15 Andreas Schwab <schwab@suse.de>
+
+ * font.c (font_update_drivers): Fix crash when no drivers match.
+
2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
* xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
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;
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)