aboutsummaryrefslogtreecommitdiff
path: root/src/jsonapi
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2016-12-29 11:28:10 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2016-12-29 11:28:10 +0100
commit897dd85d9feb5cd962db3bf2156a2a2b4d2841d4 (patch)
tree39a6fb6c66c0e3e16584b40b879069a1a6b9694b /src/jsonapi
parentd833a55288cc8e5dc8a028b85f1ec4d4803f1e6b (diff)
-add collect rest; fixes
Diffstat (limited to 'src/jsonapi')
-rw-r--r--src/jsonapi/jsonapi_document.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsonapi/jsonapi_document.c b/src/jsonapi/jsonapi_document.c
index 8022a9f6ef..3a60940f6e 100644
--- a/src/jsonapi/jsonapi_document.c
+++ b/src/jsonapi/jsonapi_document.c
@@ -344,7 +344,7 @@ GNUNET_JSONAPI_document_to_json (const struct GNUNET_JSONAPI_Document *doc,
GNUNET_assert (GNUNET_OK ==
GNUNET_JSONAPI_resource_to_json (res,
&res_json_tmp));
- json_array_append (res_json, res_json_tmp);
+ json_array_append_new (res_json, res_json_tmp);
}
}
json_object_set_new (*root_json,