(list_set_comparator): Bugfix.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment