From f75a1b3a9fa26e9cc86f76ea8d8c252a72a2bcd4 Mon Sep 17 00:00:00 2001 From: Burt P Date: Sat, 15 Jul 2017 05:24:14 -0500 Subject: All module entries must have name != NULL Hack a way to skip unavailable entries. Now "Resources" is avaialbe outside of x86 when it wasn't before. Signed-off-by: Burt P --- hardinfo/util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hardinfo') diff --git a/hardinfo/util.c b/hardinfo/util.c index e70120a4..36f6ea0b 100644 --- a/hardinfo/util.c +++ b/hardinfo/util.c @@ -730,6 +730,8 @@ static ShellModule *module_load(gchar * filename) entries = get_module_entries(); while (entries[i].name) { + if (*entries[i].name == '#') { i++; continue; } /* skip */ + ShellModuleEntry *entry = g_new0(ShellModuleEntry, 1); if (params.gui_running) { -- cgit v1.2.3