aboutsummaryrefslogtreecommitdiffstats
path: root/ext.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 13:22:00 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 13:22:00 +0300
commit6cc7d587a710606d3fe52222707739c7cc1b8651 (patch)
tree2b6360852d8f966bd83eeb6efd8af90f8e9b83f9 /ext.c
parente888f1834b88270590b7e04d64c03c75863e4565 (diff)
downloadegawk-6cc7d587a710606d3fe52222707739c7cc1b8651.tar.gz
egawk-6cc7d587a710606d3fe52222707739c7cc1b8651.tar.bz2
egawk-6cc7d587a710606d3fe52222707739c7cc1b8651.zip
Move to gawk-3.1.3.
Diffstat (limited to 'ext.c')
-rw-r--r--ext.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext.c b/ext.c
index ca3d592a..33fb5454 100644
--- a/ext.c
+++ b/ext.c
@@ -150,8 +150,10 @@ get_argument(NODE *tree, int i)
if (tree->lnode == Nnull_string)
return NULL;
- if (tree->type == Node_array_ref)
+ if (tree->type == Node_array_ref) {
tree = tree->orig_array;
+ return tree;
+ }
if (tree->type == Node_var_array)
return tree;