From 53f455be1d85829551761dbcfcf6e5706606186b Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Mon, 23 Jan 2006 22:56:54 +0000 Subject: Cleanups --- hardinfo2/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hardinfo2/expr.c') 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)) -- cgit v1.2.3