Vendor import of libcbor 0.12.0

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste
2026-03-22 10:31:02 -04:00
parent 5f50d6b344
commit aa1599ed2b
110 changed files with 2009 additions and 1754 deletions
+2 -1
View File
@@ -41,7 +41,8 @@ cJSON* cbor_to_cjson(cbor_item_t* item) {
case CBOR_TYPE_ARRAY: {
cJSON* result = cJSON_CreateArray();
for (size_t i = 0; i < cbor_array_size(item); i++) {
cJSON_AddItemToArray(result, cbor_to_cjson(cbor_array_get(item, i)));
cJSON_AddItemToArray(result,
cbor_to_cjson(cbor_move(cbor_array_get(item, i))));
}
return result;
}