diff options
Diffstat (limited to 'hardinfo2')
| -rw-r--r-- | hardinfo2/shell.c | 6 | 
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; | 
