aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2009-05-17 12:54:26 -0300
committerLeandro A. F. Pereira <leandro@hardinfo.org>2009-05-17 12:54:26 -0300
commitfea14ed5d2088500649c1a1350a407922bac253c (patch)
treef99a8bcfec4012cff9b415a75e0ab409f3f88a1f /hardinfo2/shell.c
parentb2c6231f5c707234772660a515e0daf19c710510 (diff)
More Remote mode fixes
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index b84446b7..5ecefac6 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -745,7 +745,9 @@ static gboolean update_field(gpointer data)
DEBUG("update_field [%s]", fu->field_name);
iter = g_hash_table_lookup(update_tbl, fu->field_name);
- g_return_val_if_fail(iter != NULL, FALSE);
+ if (!iter) {
+ return FALSE;
+ }
/* if the entry is still selected, update it */
if (iter && fu->entry->selected && fu->entry->fieldfunc) {