aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2008-05-18 14:26:36 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2008-05-18 14:26:36 +0000
commitcb4e0ce108d4da27400abfeca1d5d6d3de373d0b (patch)
tree4798699fc00a5ff3aa83e2c22cbb400681abfd58 /hardinfo2/shell.c
parent6e3c288210c382b93e8c0e6243d7d81b6dffd7ce (diff)
Add DMI support for x86 and x86-64 architectures. Support is based on patch by Stewart Adam (berlios patch #2272).
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c4
1 files changed, 4 insertions, 0 deletions
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,