Commit 2e5a4a8e 2e5a4a8e5171e38437a6a33f82c9f36f115f367d by Sergey Poznyakoff

(mu_registrar_record): Tolerate NULL argument.

1 parent b133369f
...@@ -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);
......