summaryrefslogtreecommitdiff
path: root/ext.c
diff options
context:
space:
mode:
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;