summaryrefslogtreecommitdiffhomepage
path: root/include/stc/csmap.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-11-04 18:45:03 +0100
committerTyge Løvset <[email protected]>2022-11-04 18:45:03 +0100
commita2c92b493e80a78a634b72bf0bbcf8dafb064f6d (patch)
treee439cd8b503a1244bb8e3caa5834d5f52028723e /include/stc/csmap.h
parent41795cba77b5559e702bc5b749fb2d8dc5c6d8bf (diff)
downloadSTC-modified-a2c92b493e80a78a634b72bf0bbcf8dafb064f6d.tar.gz
STC-modified-a2c92b493e80a78a634b72bf0bbcf8dafb064f6d.zip
csmap: bug fix from previous commit: forgot to init zero-node (1st node in array)
Diffstat (limited to 'include/stc/csmap.h')
-rw-r--r--include/stc/csmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stc/csmap.h b/include/stc/csmap.h
index 35b89eea..cea60851 100644
--- a/include/stc/csmap.h
+++ b/include/stc/csmap.h
@@ -238,6 +238,7 @@ _cx_memb(_reserve)(_cx_self* self, const size_t cap) {
if (!nodes)
return false;
self->cap = cap;
+ nodes[0] = (_cx_node){{0, 0}, 0};
self->nodes = nodes;
return true;
}