tests/test_map_generics.c

changeset 694
ac827d873c17
parent 692
6ac92936cd44
--- a/tests/test_map_generics.c	Fri Apr 21 20:28:55 2023 +0200
+++ b/tests/test_map_generics.c	Fri Apr 21 20:50:19 2023 +0200
@@ -42,7 +42,8 @@
 void test_map_generics_step_2(CxMap *map) {
     // note: we don't have a destructor here, so remove and detach are the same
     cxMapRemove(map, cx_str("test"));
-    cxMapDetach(map, "hallo");
+    char const* hallo = "hallo";
+    cxMapDetach(map, hallo);
     cxMapPut(map, cx_hash_key_str("key"), "value");
 }
 

mercurial