1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-01 12:56:32 +00:00

Fix traivis ci, which has an older version of libjansson.

This commit is contained in:
Shuai Lin
2016-06-28 14:18:51 +08:00
parent 906082601d
commit de84634c66
2 changed files with 10 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ inline static const json_t *json_array_get_json_or_null_element (json_t *array,
inline static void json_array_add_json_or_null_element (json_t *array, const json_t *value)
{
if (value) {
json_t *obj = json_deep_copy(value);
json_t *obj = json_deep_copy((json_t*)value);
json_array_append_new (array, obj);
} else {
json_array_append_new (array, json_null ());