From eb0a41ef8d058224f28226262f0522ee42256928 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 16 Jul 2003 16:11:48 +0000 Subject: Initiliaze font list to NULL. Otherwise if Enumerate fails we crash. 2003-07-16 Marco Pesenti Gritti * src/prefs-dialog.c: (setup_font_menu): Initiliaze font list to NULL. Otherwise if Enumerate fails we crash. --- src/prefs-dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 7280f7650..f5d833b16 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -444,7 +444,7 @@ setup_font_menu (PrefsDialog *dialog, GtkWidget *combo) { char *default_font; - GList *fonts; + GList *fonts = NULL; gchar *name; char key[255]; GtkWidget *entry = GTK_COMBO(combo)->entry; -- cgit v1.2.3