(mu_registrar_record): Tolerate NULL argument.
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -143,6 +143,8 @@ mu_registrar_record (mu_record_t record) | ... | @@ -143,6 +143,8 @@ mu_registrar_record (mu_record_t record) |
143 | mu_list_t list; | 143 | mu_list_t list; |
144 | mu_list_comparator_t comp; | 144 | mu_list_comparator_t comp; |
145 | 145 | ||
146 | if (!record) | ||
147 | return 0; | ||
146 | _registrar_get_list (&list); | 148 | _registrar_get_list (&list); |
147 | comp = mu_list_set_comparator (list, _compare_prio); | 149 | comp = mu_list_set_comparator (list, _compare_prio); |
148 | status = mu_list_insert (list, record, record, 1); | 150 | status = mu_list_insert (list, record, record, 1); | ... | ... |
-
Please register or sign in to post a comment