Commit f1d2dccf authored by Sebastian Ramacher's avatar Sebastian Ramacher
parent bb3fb1ad
...@@ -76,7 +76,7 @@ girara_sorted_list_new2(girara_compare_function_t cmp, girara_free_function_t gf ...@@ -76,7 +76,7 @@ girara_sorted_list_new2(girara_compare_function_t cmp, girara_free_function_t gf
void void
girara_list_set_free_function(girara_list_t* list, girara_free_function_t gfree) girara_list_set_free_function(girara_list_t* list, girara_free_function_t gfree)
{ {
g_return_if_fail(list); g_return_if_fail(list != NULL);
list->free = gfree; list->free = gfree;
} }
...@@ -334,7 +334,7 @@ girara_list_iterator_free(girara_list_iterator_t* iter) ...@@ -334,7 +334,7 @@ girara_list_iterator_free(girara_list_iterator_t* iter)
size_t size_t
girara_list_size(girara_list_t* list) girara_list_size(girara_list_t* list)
{ {
g_return_val_if_fail(list, 0); g_return_val_if_fail(list != NULL, 0);
if (list->start == NULL) { if (list->start == NULL) {
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment