summaryrefslogtreecommitdiff
path: root/hardinfo2/expr.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2006-01-23 22:56:54 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2006-01-23 22:56:54 +0000
commit53f455be1d85829551761dbcfcf6e5706606186b (patch)
treec4d2d9440fa20ce2c9263b8c5ffed7b5099d772e /hardinfo2/expr.c
parentc486ddada03f392b2d9e6e577914f48f18194e03 (diff)
Cleanups
Diffstat (limited to 'hardinfo2/expr.c')
-rw-r--r--hardinfo2/expr.c2
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))