CatalogHeader header;
_cleanup_fclose_ FILE *w = NULL;
int r;
- char _cleanup_free_ *d, *p = NULL;
+ _cleanup_free_ char *d, *p = NULL;
size_t k;
d = dirname_malloc(database);
}
assert(n == hashmap_size(h));
- qsort(items, n, sizeof(CatalogItem), catalog_compare_func);
+ qsort_safe(items, n, sizeof(CatalogItem), catalog_compare_func);
r = write_catalog(database, h, sb, items, n);
if (r < 0)
STRV_FOREACH(item, items) {
sd_id128_t id;
int k;
- char _cleanup_free_ *msg = NULL;
+ _cleanup_free_ char *msg = NULL;
k = sd_id128_from_string(*item, &id);
if (k < 0) {