diff options
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; |