d->name = strdup(name);
d->archs = NULL;
d->download_count = 0;
- d->daily_download_totals = NULL;
version->distros
= (struct distro_stats **)list_add((void **)version->distros,
a = malloc(sizeof(struct arch_stats));
a->name = strdup(name);
- a->daily_download_totals = NULL;
a->download_count = 0;
distro->archs
= add_totals(package->daily_download_totals,
totals);
+ version->daily_download_totals
+ = add_totals(version->daily_download_totals,
+ totals);
+
daily_download_total_list_free(totals);
h_cur++;