summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ted.c b/ted.c
index e12ae0d..5ad3f82 100644
--- a/ted.c
+++ b/ted.c
@@ -119,6 +119,7 @@ static i32 ted_new_node(Ted *ted) {
bool *nodes_used = ted->nodes_used;
for (i32 i = 0; i < TED_MAX_NODES; ++i) {
if (!nodes_used[i]) {
+ memset(&ted->nodes[i], 0, sizeof ted->nodes[i]); // zero new node
nodes_used[i] = true;
return i;
}