summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-02-17 04:03:56 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-02-17 04:03:56 +0000
commit04c520bad9001e40e177f729accbbda9e5be5a1b (patch)
tree14cb12c0aacd49152d18c8cb065fd7d73dcb398a /glib
parentafcc0ad3b29030db31358e04fc28830f805bb241 (diff)
downloadgtk+-04c520bad9001e40e177f729accbbda9e5be5a1b.tar.gz
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.
Diffstat (limited to 'glib')
-rw-r--r--glib/ChangeLog6
-rw-r--r--glib/glist.c3
2 files changed, 6 insertions, 3 deletions
diff --git a/glib/ChangeLog b/glib/ChangeLog
index e19533fcf3..d41f9c202e 100644
--- a/glib/ChangeLog
+++ b/glib/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
Thu Feb 12 22:48:11 1998 Owen Taylor <owt1@cornell.edu>
* gstring.c glib.h: removed deprecated g_string_equal
diff --git a/glib/glist.c b/glib/glist.c
index a9aebff1f2..3ada548fba 100644
--- a/glib/glist.c
+++ b/glib/glist.c
@@ -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;