tests/test_kv_list.c

changeset 1405
0f6515875a09
parent 1394
7b23c6db9500
--- a/tests/test_kv_list.c	Mon Sep 29 23:28:46 2025 +0200
+++ b/tests/test_kv_list.c	Mon Sep 29 23:31:59 2025 +0200
@@ -325,7 +325,7 @@
         CxMap *map = cxKvListAsMap(list);
         x = 13;
         // test with a custom key that was not hashed, yet
-        CxHashKey key = {};
+        CxHashKey key = {0};
         key.data = "xyz";
         key.len = 3;
         CX_TEST_ASSERT(0 == cxMapPut(map, key, &x));
@@ -424,7 +424,7 @@
         // now check with a non-prehashed key
         x = 85;
         cxListAdd(list, &x);
-        CxHashKey key = {};
+        CxHashKey key = {0};
         key.data = "abc";
         key.len = 3;
         CX_TEST_ASSERT(0 == cxKvListSetKey(list, 0, key));

mercurial