aboutsummaryrefslogtreecommitdiffstats
path: root/int_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 /int_array.c
parent50c2afd6433f1c4407b04d2f75e536da7c94fe74 (diff)
downloadegawk-3a8c139d1a28651bf222b05cb0895bf5066bb9f9.tar.gz
egawk-3a8c139d1a28651bf222b05cb0895bf5066bb9f9.tar.bz2
egawk-3a8c139d1a28651bf222b05cb0895bf5066bb9f9.zip
Fix memory corruption in copying an array, add another array extension.
Diffstat (limited to 'int_array.c')
-rw-r--r--int_array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/int_array.c b/int_array.c
index 7b8b261a..1f19b14f 100644
--- a/int_array.c
+++ b/int_array.c
@@ -425,6 +425,7 @@ int_copy(NODE *symbol, NODE *newsymb)
}
*pnew = newchain;
+ newchain->ainext = NULL;
pnew = & newchain->ainext;
}
}