diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-28 16:40:51 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-28 16:40:51 +0300 |
commit | b4ef28f58688cf3c3a5878c595b6582144ee2cf1 (patch) | |
tree | 215345f53d438d6aa45fdf1a0c20f446ef7be2a8 /eval.c | |
parent | 8dedda4944d453e2b9fe3e6d0234f7cae1e894c7 (diff) | |
parent | f088a3efc8aefc47f0bfe7824732aae4283b4c15 (diff) | |
download | gawk-b4ef28f58688cf3c3a5878c595b6582144ee2cf1.tar.gz |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1328,7 +1328,13 @@ setup_frame(INSTRUCTION *pc) if (m->type == Node_param_list) m = GET_PARAM(m->param_cnt); - + + /* $0 needs to be passed by value to a function */ + if (m == fields_arr[0]) { + DEREF(m); + m = dupnode(m); + } + switch (m->type) { case Node_var_new: case Node_var_array: |