aboutsummaryrefslogtreecommitdiff
path: root/src/identity
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2015-03-13 17:37:07 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2015-03-13 17:37:07 +0000
commit14f993de57d834b4743d22cd952cfd7ca3aef097 (patch)
treedd3516cfeab8d94e9812594846aecd0565455c82 /src/identity
parent7ae2282ee296b24e0132d155ece49ae87e21215b (diff)
downloadgnunet-14f993de57d834b4743d22cd952cfd7ca3aef097.tar.gz
gnunet-14f993de57d834b4743d22cd952cfd7ca3aef097.zip
-fix, debug
Diffstat (limited to 'src/identity')
-rw-r--r--src/identity/plugin_rest_identity.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/identity/plugin_rest_identity.c b/src/identity/plugin_rest_identity.c
index 60d6547d5..1bc5f6fea 100644
--- a/src/identity/plugin_rest_identity.c
+++ b/src/identity/plugin_rest_identity.c
@@ -395,7 +395,6 @@ ego_info_response (struct RequestHandle *handle)
395 GNUNET_free (keystring); 395 GNUNET_free (keystring);
396 if (NULL == egoname) 396 if (NULL == egoname)
397 { 397 {
398 GNUNET_break (0);
399 json_array_append (ego_arr, ego_json); 398 json_array_append (ego_arr, ego_json);
400 json_decref (ego_json); 399 json_decref (ego_json);
401 } 400 }
@@ -403,9 +402,9 @@ ego_info_response (struct RequestHandle *handle)
403 break; 402 break;
404 } 403 }
405 if (NULL == egoname) 404 if (NULL == egoname)
406 json_object_set (root_json, JSON_API_TYPE_DATA, ego_arr); 405 json_object_set (root_json, "egos", ego_arr);
407 else 406 else
408 json_object_set (root_json, JSON_API_TYPE_DATA, ego_json); 407 json_object_set (root_json, "ego", ego_json);
409 408
410 result_str = json_dumps (root_json, JSON_COMPACT); 409 result_str = json_dumps (root_json, JSON_COMPACT);
411 json_decref (ego_arr); 410 json_decref (ego_arr);