diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-05 21:50:49 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-05 21:50:49 -0600 |
commit | 7ca16c45a2ecfbf415fffd384eb5efd32180c5da (patch) | |
tree | eed9c8a9f56e45cfb14d7b4a574b432a01ae2491 /lib9p/map.h | |
parent | cb108cfecb78c01ae8a2957ca5a32b58f9ddc4aa (diff) |
fixes, valgrind
Diffstat (limited to 'lib9p/map.h')
-rw-r--r-- | lib9p/map.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib9p/map.h b/lib9p/map.h index 833f4f5..dcb6ecd 100644 --- a/lib9p/map.h +++ b/lib9p/map.h @@ -78,6 +78,7 @@ static VAL_T *MAP_METHOD(NAME,store)(struct NAME *m, KEY_T k, VAL_T v) { return NULL; for (size_t i = 0; i < ARRAY_LEN(m->items); i++) if (!m->items[i].set) { + m->len++; m->items[i].set = true; m->items[i].key = k; m->items[i].val = v; |