aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-01-17 18:23:06 +0200
committerArnold D. Robbins <arnold@skeeve.com>2018-01-17 18:23:06 +0200
commit7f4a9474439bf1f8b69290db9b48b63b462f27a4 (patch)
tree280540d53e9e1074a952c611c8889cdc85f72cbe /builtin.c
parentd6b4e76120053e3572e593b8c1c8518c0fa8b432 (diff)
parent8c26b0480d3f83416e6791a0453e3548e139a00f (diff)
downloadegawk-7f4a9474439bf1f8b69290db9b48b63b462f27a4.tar.gz
egawk-7f4a9474439bf1f8b69290db9b48b63b462f27a4.tar.bz2
egawk-7f4a9474439bf1f8b69290db9b48b63b462f27a4.zip
Merge branch 'gawk-4.2-stable'
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin.c b/builtin.c
index 54d202d6..6927205c 100644
--- a/builtin.c
+++ b/builtin.c
@@ -507,7 +507,9 @@ do_isarray(int nargs)
tmp = POP();
if (tmp->type != Node_var_array) {
ret = 0;
- DEREF(tmp);
+ // could be Node_var_new
+ if (tmp->type == Node_val)
+ DEREF(tmp);
}
return make_number((AWKNUM) ret);
}