Commit dc428b7d dc428b7da31223bb5ea8336c663aa3e8a9b0d7b9 by Sergey Poznyakoff

(list_set_comparator): Bugfix.

1 parent e4b29948
...@@ -134,7 +134,7 @@ list_set_comparator (list_t list, list_comparator_t comp) ...@@ -134,7 +134,7 @@ list_set_comparator (list_t list, list_comparator_t comp)
134 { 134 {
135 list_comparator_t old_comp; 135 list_comparator_t old_comp;
136 if (list == NULL) 136 if (list == NULL)
137 return EINVAL; 137 return NULL;
138 old_comp = list->comp; 138 old_comp = list->comp;
139 list->comp = comp; 139 list->comp = comp;
140 return old_comp; 140 return old_comp;
......