--- xgnokii/xgnokii_xring.c 2005-12-30 00:52:34.000000000 +0100 +++ xgnokii/xgnokii_xring.c~ 2005-12-30 00:52:34.000000000 +0100 @@ -428,11 +428,10 @@ gn_ringtone_info *get_selected_ringtone(void) { GtkList *list; - int pos = -1; + int pos; list = GTK_LIST(GTK_COMBO(gi.rlist_combo)->list); - if (list) - pos = gtk_list_child_position(list, list->selection->data); + pos = gtk_list_child_position(list, list->selection->data); if (pos < 0 || pos > gi.ringtone_list.count) return NULL;