We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34cf74b commit e4e7c3dCopy full SHA for e4e7c3d
examples/cbor2cjson.c
@@ -41,7 +41,7 @@ cJSON* cbor_to_cjson(cbor_item_t* item) {
41
case CBOR_TYPE_ARRAY: {
42
cJSON* result = cJSON_CreateArray();
43
for (size_t i = 0; i < cbor_array_size(item); i++) {
44
- cJSON_AddItemToArray(result, cbor_to_cjson(cbor_array_get(item, i)));
+ cJSON_AddItemToArray(result, cbor_to_cjson(cbor_move(cbor_array_get(item, i))));
45
}
46
return result;
47
0 commit comments