Author: tkreuzer
Date: Sun Dec 26 09:39:31 2010
New Revision: 50140
URL:
http://svn.reactos.org/svn/reactos?rev=50140&view=rev
Log:
[CALC]
Initialize next field. Fixes CID 11063
Modified:
trunk/reactos/base/applications/calc/rpn.c
Modified: trunk/reactos/base/applications/calc/rpn.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/calc/rpn…
==============================================================================
--- trunk/reactos/base/applications/calc/rpn.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/calc/rpn.c [iso-8859-1] Sun Dec 26 09:39:31 2010
@@ -351,7 +351,7 @@
} else {
push(op);
break;
- }
+ }
}
if(ip.node.operation != RPN_OPERATOR_EQUAL && ip.node.operation !=
RPN_OPERATOR_PERCENT)
@@ -380,6 +380,7 @@
tmp.node.number = *number;
tmp.node.base = calc.base;
tmp.node.operation = func;
+ tmp.next = NULL;
push(&tmp);
@@ -446,7 +447,7 @@
while (!is_stack_empty())
pop();
/* clear prev and last typed operators */
- calc.prev_operator =
+ calc.prev_operator =
calc.last_operator = 0;
}