mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Merge pull request #11909 from akallabeth/jansson-array
[winpr,json] fix WINPR_JSON_AddItemToArray
This commit is contained in:
@@ -308,7 +308,7 @@ WINPR_JSON* WINPR_JSON_AddObjectToObject(WINPR_JSON* object, const char* name)
|
||||
|
||||
BOOL WINPR_JSON_AddItemToArray(WINPR_JSON* array, WINPR_JSON* item)
|
||||
{
|
||||
return json_array_append(cast(array), item) == 0;
|
||||
return json_array_append_new(cast(array), item) == 0;
|
||||
}
|
||||
|
||||
WINPR_JSON* WINPR_JSON_AddArrayToObject(WINPR_JSON* object, const char* name)
|
||||
|
||||
Reference in New Issue
Block a user