diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-03-19 15:19:00 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-03-19 15:19:00 +0100 |
commit | 110b61ff12208ffbb022296097b85d28cc1cfe7e (patch) | |
tree | 414c0de1ffe90685effe7230883c085239f7ce46 /src/backend/taler-merchant-httpd_private-get-token-families-SLUG.c | |
parent | 88a23388c11a755fece7221579be1143e48d32c5 (diff) |
address TODOsCodeBlau-NGI-t2.7
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-token-families-SLUG.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-get-token-families-SLUG.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-token-families-SLUG.c b/src/backend/taler-merchant-httpd_private-get-token-families-SLUG.c index b7c8ab4d..06dbbdf9 100644 --- a/src/backend/taler-merchant-httpd_private-get-token-families-SLUG.c +++ b/src/backend/taler-merchant-httpd_private-get-token-families-SLUG.c @@ -72,9 +72,9 @@ TMH_private_get_tokenfamilies_SLUG (const struct TMH_RequestHandler *rh, } else { + GNUNET_break (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - // TODO: What error code to use here? TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE, "invalid_token_family_kind"); } @@ -86,12 +86,13 @@ TMH_private_get_tokenfamilies_SLUG (const struct TMH_RequestHandler *rh, MHD_HTTP_OK, GNUNET_JSON_pack_string ("name", details.name), GNUNET_JSON_pack_string ("description", details.description), - GNUNET_JSON_pack_object_steal ("description_i18n", details.description_i18n), + GNUNET_JSON_pack_object_steal ("description_i18n", + details.description_i18n), GNUNET_JSON_pack_timestamp ("valid_after", details.valid_after), GNUNET_JSON_pack_timestamp ("valid_before", details.valid_before), GNUNET_JSON_pack_time_rel ("duration", details.duration), GNUNET_JSON_pack_string ("kind", kind) - ); + ); GNUNET_free (details.name); GNUNET_free (details.description); |