aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_oauth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_cmd_oauth.c')
-rw-r--r--src/testing/testing_api_cmd_oauth.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/testing/testing_api_cmd_oauth.c b/src/testing/testing_api_cmd_oauth.c
index fcf7e843a..b086d2297 100644
--- a/src/testing/testing_api_cmd_oauth.c
+++ b/src/testing/testing_api_cmd_oauth.c
@@ -193,10 +193,13 @@ handler_cb (void *cls,
"Bob"),
GNUNET_JSON_pack_string ("last_name",
"Builder"));
+
if (NULL != oas->birthdate)
- json_object_set_new (data,
- "birthdate",
- json_string_nocheck (oas->birthdate));
+ GNUNET_assert (0 ==
+ json_object_set_new (data,
+ "birthdate",
+ json_string_nocheck (
+ oas->birthdate)));
body = GNUNET_JSON_PACK (
GNUNET_JSON_pack_string (