From 866846bf8cd5ef49ca67c7162137d689fe6d1a8f Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 26 Dec 2010 09:39:31 +0000 Subject: [PATCH] [CALC] Initialize next field. Fixes CID 11063 svn path=/trunk/; revision=50140 --- reactos/base/applications/calc/rpn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/base/applications/calc/rpn.c b/reactos/base/applications/calc/rpn.c index e757434b6ef..ccbf171ba77 100644 --- a/reactos/base/applications/calc/rpn.c +++ b/reactos/base/applications/calc/rpn.c @@ -351,7 +351,7 @@ static void evalStack(calc_number_t *number) } else { push(op); break; - } + } } if(ip.node.operation != RPN_OPERATOR_EQUAL && ip.node.operation != RPN_OPERATOR_PERCENT) @@ -380,6 +380,7 @@ int exec_infix2postfix(calc_number_t *number, unsigned int func) tmp.node.number = *number; tmp.node.base = calc.base; tmp.node.operation = func; + tmp.next = NULL; push(&tmp); @@ -446,7 +447,7 @@ void flush_postfix() while (!is_stack_empty()) pop(); /* clear prev and last typed operators */ - calc.prev_operator = + calc.prev_operator = calc.last_operator = 0; }