From cb4e0ce108d4da27400abfeca1d5d6d3de373d0b Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 18 May 2008 14:26:36 +0000 Subject: Add DMI support for x86 and x86-64 architectures. Support is based on patch by Stewart Adam (berlios patch #2272). --- hardinfo2/shell.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hardinfo2/shell.c') diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index ca246704..34a2340e 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -485,6 +485,10 @@ static void add_modules_to_gui(gpointer data, gpointer user_data) ShellModule *module = (ShellModule *) data; GtkTreeStore *store = GTK_TREE_STORE(shelltree->model); GtkTreeIter parent; + + if (!module) { + return; + } gtk_tree_store_append(store, &parent, NULL); gtk_tree_store_set(store, &parent, TREE_COL_NAME, module->name, -- cgit v1.2.3