# HG changeset patch # User Eric Warmenhoven # Date 974979355 0 # Node ID d31fad9abb3262460bb9becf8b0d0d12b740370a # Parent 282e6b7aef2c1dbf94a316b44e094bee918147ec [gaim-migrate @ 1140] I know, I shouldn't be working on Thanksgiving, but this was bothering me in the car the whole ride home. committer: Tailor Script diff -r 282e6b7aef2c -r d31fad9abb32 src/prefs.c --- a/src/prefs.c Wed Nov 22 13:56:09 2000 +0000 +++ b/src/prefs.c Thu Nov 23 11:35:55 2000 +0000 @@ -1397,7 +1397,12 @@ { GtkWidget *label; GtkWidget *list_item; - GSList *p = current_deny_gc->permit; + GSList *p; + + if (current_is_deny) + return; + + p = current_deny_gc->permit; gtk_list_remove_items(GTK_LIST(allow_list), GTK_LIST(allow_list)->children); @@ -1417,9 +1422,12 @@ { GtkWidget *label; GtkWidget *list_item; - GSList *d = current_deny_gc->deny; + GSList *d; - if (!prefs) return; + if (!current_is_deny) + return; + + d = current_deny_gc->deny; gtk_list_remove_items(GTK_LIST(block_list), GTK_LIST(block_list)->children);