summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-patch-token-families-SLUG.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-patch-token-families-SLUG.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-token-families-SLUG.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/backend/taler-merchant-httpd_private-patch-token-families-SLUG.c b/src/backend/taler-merchant-httpd_private-patch-token-families-SLUG.c
index 8d34b2ff..c49d80d7 100644
--- a/src/backend/taler-merchant-httpd_private-patch-token-families-SLUG.c
+++ b/src/backend/taler-merchant-httpd_private-patch-token-families-SLUG.c
@@ -82,7 +82,7 @@ TMH_private_patch_token_family_SLUG (const struct TMH_RequestHandler *rh,
: MHD_NO;
}
- struct GNUNET_TIME_Relative validity = GNUNET_TIME_absolute_get_difference(
+ struct GNUNET_TIME_Relative validity = GNUNET_TIME_absolute_get_difference (
details.valid_after.abs_time,
details.valid_before.abs_time);
@@ -98,8 +98,10 @@ TMH_private_patch_token_family_SLUG (const struct TMH_RequestHandler *rh,
}
if (NULL == details.description_i18n)
+ {
details.description_i18n = json_object ();
-
+ GNUNET_assert (NULL != details.description_i18n);
+ }
if (! TALER_JSON_check_i18n (details.description_i18n))
{
GNUNET_break_op (0);
@@ -136,9 +138,9 @@ TMH_private_patch_token_family_SLUG (const struct TMH_RequestHandler *rh,
case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
// TODO: Add error code for token family not found
ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- 0,
- slug);
+ MHD_HTTP_NOT_FOUND,
+ 0,
+ slug);
break;
case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
ret = TALER_MHD_reply_static (connection,