summaryrefslogtreecommitdiff
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-01-08 21:03:32 +0200
committerArnold D. Robbins <arnold@skeeve.com>2020-01-08 21:03:32 +0200
commita2a6e548bc3afcbf4c7401ebdfa8213dbe4e8dea (patch)
treea5688e69343d54c510d976750b41e4a5851e4518 /builtin.c
parentebe9dd1633c6f5e5d42e922a70f72829c14c193c (diff)
downloadgawk-a2a6e548bc3afcbf4c7401ebdfa8213dbe4e8dea.tar.gz
Fix problems passing uninitialized variables to typeof.
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin.c b/builtin.c
index e09a48bd..f8ca0371 100644
--- a/builtin.c
+++ b/builtin.c
@@ -4159,6 +4159,7 @@ do_typeof(int nargs)
}
break;
case Node_var_new:
+ case Node_array_ref:
res = "untyped";
deref = false;
break;