summaryrefslogtreecommitdiff
path: root/str_array.c
diff options
context:
space:
mode:
Diffstat (limited to 'str_array.c')
-rw-r--r--str_array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/str_array.c b/str_array.c
index 08704312..1ff8348f 100644
--- a/str_array.c
+++ b/str_array.c
@@ -4,7 +4,7 @@
/*
* Copyright (C) 1986, 1988, 1989, 1991-2013, 2016, 2017, 2018, 2019,
- * 2021,
+ * 2021, 2022,
* the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
@@ -217,7 +217,7 @@ str_lookup(NODE *symbol, NODE *subs)
b->ahname = subs;
b->ahname_str = subs->stptr;
b->ahname_len = subs->stlen;
- b->ahvalue = dupnode(Nnull_string);
+ b->ahvalue = new_array_element();
b->ahcode = code1;
return & (b->ahvalue);
}