diff options
Diffstat (limited to 'hardinfo2/expr.c')
-rw-r--r-- | hardinfo2/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hardinfo2/expr.c b/hardinfo2/expr.c index 8727a63b..2bdd5563 100644 --- a/hardinfo2/expr.c +++ b/hardinfo2/expr.c @@ -94,7 +94,7 @@ GSList *math_infix_to_postfix(GSList *infix) t_sp--; } else if (t->type != TOKEN_OPERATOR) { postfix = g_slist_append(postfix, t); - } else if (!stack) { + } else if (t_sp == 0) { stack[++t_sp] = t; } else { while (t_sp != 0 && priority(t->val.op) <= priority(stack[t_sp]->val.op)) |