--- 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"); }