distro = get_distro_arch_series
(h->distro_arch_series_link);
- if (!distro->is_nominated_arch_indep) {
+ if (!distro || !distro->is_nominated_arch_indep) {
binary_package_publishing_history_free(h);
continue ;
}
static int json_object_get_fields_count(json_object *o)
{
int n = 0;
+ struct lh_entry *entry;
- json_object_object_foreach(o, key, val)
+ entry = json_object_get_object(o)->head;
+ while (entry) {
+ entry = entry->next;
n++;
+ }
return n;
}