Commit 9dff8ba6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Cosmetics

parent 3dff081e
......@@ -86,15 +86,14 @@ static inline info_t *info_category_VaAddInfo(info_category_t *cat,
const char *name,
const char *format, va_list args)
{
info_t *info = info_category_FindInfo(cat, NULL, name);
if (!info) {
info = info_New(name, NULL);
info_t *info = info_category_FindInfo(cat, NULL, name);
if (!info) {
info = info_New(name, NULL);
if (!info)
return NULL;
INSERT_ELEM(cat->pp_infos, cat->i_infos, cat->i_infos, info);
} else {
INSERT_ELEM(cat->pp_infos, cat->i_infos, cat->i_infos, info);
} else
free(info->psz_value);
}
if (vasprintf(&info->psz_value, format, args) == -1)
info->psz_value = NULL;
return info;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment