From 11e616945340e87a1f567ab92e6dfac3068875b1 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Sat, 25 Nov 2017 13:35:47 -0600 Subject: New upstream version 0.5.1+git20171103 --- hardinfo/info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hardinfo/info.c') diff --git a/hardinfo/info.c b/hardinfo/info.c index ef64a420..0bbf7a07 100644 --- a/hardinfo/info.c +++ b/hardinfo/info.c @@ -148,7 +148,8 @@ static void flatten_group(GString *output, const struct InfoGroup *group) { guint i; - g_string_append_printf(output, "[%s]\n", group->name); + if (group->name != NULL) + g_string_append_printf(output, "[%s]\n", group->name); if (group->fields) { for (i = 0; i < group->fields->len; i++) { -- cgit v1.2.3