From 1f79562434de77d978eb87477a9b967023bf50f6 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Tue, 3 May 2016 09:33:01 +0000 Subject: - add jsonapi tests --- src/namestore/plugin_rest_namestore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/namestore/plugin_rest_namestore.c') diff --git a/src/namestore/plugin_rest_namestore.c b/src/namestore/plugin_rest_namestore.c index d33bf483b..c47a6a3c8 100644 --- a/src/namestore/plugin_rest_namestore.c +++ b/src/namestore/plugin_rest_namestore.c @@ -744,7 +744,8 @@ namestore_create_cont (struct RestConnectionDataHandle *con, } term_data[handle->data_size] = '\0'; memcpy (term_data, handle->data, handle->data_size); - json_obj = GNUNET_JSONAPI_object_parse (term_data); + GNUNET_assert (GNUNET_OK == GNUNET_JSONAPI_object_parse (term_data, + &json_obj)); if (NULL == json_obj) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, -- cgit v1.2.3