aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-08-19 14:23:04 -0300
committerSebastian <sebasjm@gmail.com>2024-08-19 14:23:27 -0300
commit10afdd0d1e425c344416ef0dac8119693afa77c8 (patch)
tree2f267e954428c94e98e1d2715e2d389286a062bc
parentf84481fdfef65fd31dd6ab7323ae6cbdee413517 (diff)
fix: NULL not allowed for description_i18n
-rw-r--r--src/kyclogic/kyclogic_api.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c
index d34974006..9299e20d9 100644
--- a/src/kyclogic/kyclogic_api.c
+++ b/src/kyclogic/kyclogic_api.c
@@ -2876,8 +2876,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;
case TALER_KYCLOGIC_CT_LINK: