aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-05-04 23:10:29 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-05-04 23:10:29 +0300
commitf2b825c82aa6b0b2eabed734244148206f3c01a5 (patch)
treebc7c03bf1133c56a26ef1aeafb8905fbf47ddbaf /eval.c
parente7dced088c226280bcb1edb252011d6c186504e4 (diff)
downloadegawk-f2b825c82aa6b0b2eabed734244148206f3c01a5.tar.gz
egawk-f2b825c82aa6b0b2eabed734244148206f3c01a5.tar.bz2
egawk-f2b825c82aa6b0b2eabed734244148206f3c01a5.zip
Bug fixes and new test, see nastyparm.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 850953f6..dbd1c9fb 100644
--- a/eval.c
+++ b/eval.c
@@ -1302,6 +1302,15 @@ setup_frame(INSTRUCTION *pc)
r->prev_array = m;
break;
+ case Node_var:
+ /* Untyped (Node_var_new) variable as param became a
+ * scalar during evaluation of expression for a
+ * subsequent param.
+ */
+ r->type = Node_var;
+ r->var_value = Nnull_string;
+ break;
+
case Node_val:
r->type = Node_var;
r->var_value = m;