Changed function so elements are always inserted, even if they compare
Mon Feb 16 23:05:06 1998 Owen Taylor <owt1@cornell.edu> * glist.c (g_list_insert_sorted): Changed function so elements are always inserted, even if they compare equal with another.
This commit is contained in:
@ -389,9 +389,6 @@ g_list_insert_sorted (GList *list,
|
||||
cmp = (*func) (data, tmp_list->data);
|
||||
}
|
||||
|
||||
if (cmp == 0)
|
||||
return list;
|
||||
|
||||
new_list = g_list_alloc();
|
||||
new_list->data = data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user