mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-04-28 10:33:20 +00:00
commit
c137594507
@ -144,6 +144,9 @@ searpc_set_objlist_to_ret_object (json_t *object, GList *ret)
|
|||||||
void
|
void
|
||||||
searpc_set_json_to_ret_object (json_t *object, json_t *ret)
|
searpc_set_json_to_ret_object (json_t *object, json_t *ret)
|
||||||
{
|
{
|
||||||
|
if (ret == NULL)
|
||||||
|
json_object_set_new(object, "ret", json_null ());
|
||||||
|
else
|
||||||
json_object_set_new (object, "ret", ret);
|
json_object_set_new (object, "ret", ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user