From 6d363488a1cc874e9dbd3f3841439b4e4df2c826 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 7 May 2023 00:16:06 +0200 Subject: allow NULL --- src/templating/templating_api.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/templating/templating_api.c') diff --git a/src/templating/templating_api.c b/src/templating/templating_api.c index dba042e5d..4bd7c5fe7 100644 --- a/src/templating/templating_api.c +++ b/src/templating/templating_api.c @@ -443,8 +443,9 @@ TALER_TEMPLATING_reply_error (struct MHD_Connection *connection, ec), GNUNET_JSON_pack_string ("hint", TALER_ErrorCode_get_hint (ec)), - GNUNET_JSON_pack_string ("detail", - detail) + GNUNET_JSON_pack_allow_null ( + GNUNET_JSON_pack_string ("detail", + detail)) ); ret = TALER_TEMPLATING_reply (connection, http_status, -- cgit v1.2.3