src/properties.c

changeset 1559
9e50f45f8736
parent 1558
fc863c877a75
--- a/src/properties.c	Tue Dec 09 17:27:58 2025 +0100
+++ b/src/properties.c	Tue Dec 09 18:51:11 2025 +0100
@@ -254,6 +254,10 @@
 
 CxPropertiesStatus cx_properties_load(CxPropertiesConfig config,
         const CxAllocator *allocator, cxstring filename, CxMap *target) {
+    if (allocator == NULL) {
+        allocator = cxDefaultAllocator;
+    }
+
     // sanity check for the map
     const bool use_cstring = cxCollectionStoresPointers(target);
     if (!use_cstring && cxCollectionElementSize(target) != sizeof(cxmutstr)) {

mercurial