exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit e971f3f680adece7643a214cae91891f838f086c
parent f45ef9c626d80b4417d9ea34c43edd95eef1057b
Author: Sebastian <sebasjm@gmail.com>
Date:   Tue, 20 Aug 2024 11:55:34 -0300

fix: NULL not allowed for description_i18n, also info and link

Diffstat:
Msrc/kyclogic/kyclogic_api.c | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c @@ -2857,8 +2857,9 @@ TALER_KYCLOGIC_measure_to_requirement ( "INFO"), GNUNET_JSON_pack_string ("description", kc->description), - GNUNET_JSON_pack_object_incref ("description_i18n", - (json_t *) kc->description_i18n)); + GNUNET_JSON_pack_allow_null ( + GNUNET_JSON_pack_object_incref ("description_i18n", + (json_t *) kc->description_i18n))); case TALER_KYCLOGIC_CT_FORM: GNUNET_assert (offset <= UINT_MAX); ids = GNUNET_STRINGS_data_to_string_alloc (&shv, @@ -2898,8 +2899,9 @@ TALER_KYCLOGIC_measure_to_requirement ( xids), GNUNET_JSON_pack_string ("description", kc->description), - GNUNET_JSON_pack_object_incref ("description_i18n", - (json_t *) kc->description_i18n)); + GNUNET_JSON_pack_allow_null ( + GNUNET_JSON_pack_object_incref ("description_i18n", + (json_t *) kc->description_i18n))); GNUNET_free (xids); return kri; }