summaryrefslogtreecommitdiff
path: root/str_array.c
diff options
context:
space:
mode:
authorjohn haque <j.eh@mchsi.com>2012-05-02 08:05:43 -0500
committerjohn haque <j.eh@mchsi.com>2012-05-02 08:05:43 -0500
commit3a8c139d1a28651bf222b05cb0895bf5066bb9f9 (patch)
treecbe9b6c918bef7439f6c321925c30066e6103771 /str_array.c
parent50c2afd6433f1c4407b04d2f75e536da7c94fe74 (diff)
downloadgawk-3a8c139d1a28651bf222b05cb0895bf5066bb9f9.tar.gz
Fix memory corruption in copying an array, add another array extension.
Diffstat (limited to 'str_array.c')
-rw-r--r--str_array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/str_array.c b/str_array.c
index c6b33c6d..a38562cd 100644
--- a/str_array.c
+++ b/str_array.c
@@ -332,6 +332,7 @@ str_copy(NODE *symbol, NODE *newsymb)
newchain->ahcode = chain->ahcode;
*pnew = newchain;
+ newchain->ahnext = NULL;
pnew = & newchain->ahnext;
}
}