libhmap-c

C hashmap library
git clone https://git.sinitax.com/sinitax/libhmap-c
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

commit aacdb178718fe4a5fc7562ddb4017e0e405d85cf
parent 7a87c09722873327e33779fb29a3e13a27103d89
Author: Louis Burda <quent.burda@gmail.com>
Date:   Thu,  4 May 2023 18:53:38 +0200

Make HMAP_ITER macro resistant to user error

Diffstat:
Minclude/hmap.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/hmap.h b/include/hmap.h @@ -7,7 +7,7 @@ #include <sys/types.h> #define HMAP_ITER(map, iter) \ - hmap_iter_init(iter); hmap_iter_next(map, iter); + hmap_iter_init(&(iter)); hmap_iter_next(map, &(iter)); #define HMAP_STRERR_INIT \ [HMAP_OK] = "Success", \