Fix access to uninitialized memory.

This commit is contained in:
Andrew Johnson
2009-01-16 16:49:19 +00:00
parent 99053303fb
commit 105448f3f8
+2 -1
View File
@@ -337,7 +337,8 @@ epicsShareFunc long
pstacktop--; /* remove ( from stack */
/* if there is a vararg operator before the opening paren,
it inherits the (opening) paren's stack effect */
if (pstacktop->type == VARARG_OPERATOR) {
if ((pstacktop > stack) &&
pstacktop->type == VARARG_OPERATOR) {
pstacktop->runtime_effect = (pstacktop+1)->runtime_effect;
/* check for no arguments */
if (pstacktop->runtime_effect > 0) {