aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_post_webhooks.c
diff options
context:
space:
mode:
authorpriscilla <priscilla.huang@efrei.net>2023-02-01 04:46:35 -0500
committerpriscilla <priscilla.huang@efrei.net>2023-02-01 04:46:52 -0500
commit8b18850523c9a2303c348b2ede777f012f610fda (patch)
tree989c9be16261ec781397a280b5ff3fd6d8db833b /src/testing/testing_api_cmd_post_webhooks.c
parent9a651aeea9cf20233a9488e45ddd11bba5f3ea68 (diff)
downloadmerchant-8b18850523c9a2303c348b2ede777f012f610fda.tar.gz
merchant-8b18850523c9a2303c348b2ede777f012f610fda.tar.bz2
merchant-8b18850523c9a2303c348b2ede777f012f610fda.zip
update from the file testing
Diffstat (limited to 'src/testing/testing_api_cmd_post_webhooks.c')
-rw-r--r--src/testing/testing_api_cmd_post_webhooks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/testing_api_cmd_post_webhooks.c b/src/testing/testing_api_cmd_post_webhooks.c
index d1628429..9f7c36b7 100644
--- a/src/testing/testing_api_cmd_post_webhooks.c
+++ b/src/testing/testing_api_cmd_post_webhooks.c
@@ -240,8 +240,8 @@ TALER_TESTING_cmd_merchant_post_webhooks2 (
wis->event_type = event_type;
wis->url = url;
wis->http_method = http_method;
- wis->header_template = header_template;
- wis->body_template = body_template;
+ wis->header_template = (NULL==header_template) ? NULL : header_template;
+ wis->body_template = (NULL==body_template) ? NULL : body_template;
{
struct TALER_TESTING_Command cmd = {
.cls = wis,