aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index d06faecb..1024515b 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -1073,8 +1073,10 @@ static void update_progress()
gchar *tmp;
gdouble maxv = 0, maxp = 0, cur, floatval;
- gtk_tree_model_get_iter_first(model, &fiter);
-
+ if (!gtk_tree_model_get_iter_first(model, &fiter)) {
+ return;
+ }
+
/* finds the maximum value */
if (shell->normalize_percentage) {
iter = fiter;