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