src/hash_map.c

changeset 989
8aa57a7fecc4
parent 962
cd418898af5c
--- a/src/hash_map.c	Mon Nov 18 22:05:42 2024 +0100
+++ b/src/hash_map.c	Sat Nov 23 14:45:32 2024 +0100
@@ -392,6 +392,10 @@
         size_t itemsize,
         size_t buckets
 ) {
+    if (allocator == NULL) {
+        allocator = cxDefaultAllocator;
+    }
+
     if (buckets == 0) {
         // implementation defined default
         buckets = 16;

mercurial