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, ...@@ -86,15 +86,14 @@ static inline info_t *info_category_VaAddInfo(info_category_t *cat,
const char *name, const char *name,
const char *format, va_list args) const char *format, va_list args)
{ {
info_t *info = info_category_FindInfo(cat, NULL, name); info_t *info = info_category_FindInfo(cat, NULL, name);
if (!info) { if (!info) {
info = info_New(name, NULL); info = info_New(name, NULL);
if (!info) if (!info)
return NULL; return NULL;
INSERT_ELEM(cat->pp_infos, cat->i_infos, cat->i_infos, info); INSERT_ELEM(cat->pp_infos, cat->i_infos, cat->i_infos, info);
} else { } else
free(info->psz_value); free(info->psz_value);
}
if (vasprintf(&info->psz_value, format, args) == -1) if (vasprintf(&info->psz_value, format, args) == -1)
info->psz_value = NULL; info->psz_value = NULL;
return info; 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