aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorpriscilla <priscilla.huang@efrei.net>2022-12-30 10:35:59 -0500
committerpriscilla <priscilla.huang@efrei.net>2022-12-30 10:35:59 -0500
commitdbd6edd6617647208e59665bcdbf7ce985a4ed28 (patch)
tree4c3ad51da8a0137cd55cc468dbf08d4686a85fec /src/testing
parent4b9062c3a7d38c41ba970e630e759a899b171e71 (diff)
get template - image error
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_api_cmd_get_template.c2
-rw-r--r--src/testing/testing_api_cmd_patch_template.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/testing_api_cmd_get_template.c b/src/testing/testing_api_cmd_get_template.c
index 2f0f882a..44568b89 100644
--- a/src/testing/testing_api_cmd_get_template.c
+++ b/src/testing/testing_api_cmd_get_template.c
@@ -128,7 +128,7 @@ get_template_cb (void *cls,
TALER_TESTING_interpreter_fail (gis->is);
if ( ( (NULL == image) && (NULL != *expected_image)) ||
( (NULL != image) && (NULL == *expected_image)) ||
- ( (NULL != image) &&
+ ( (NULL == image) &&
(0 != strcmp (image,
*expected_image)) ) )
{
diff --git a/src/testing/testing_api_cmd_patch_template.c b/src/testing/testing_api_cmd_patch_template.c
index 68b5cbaa..5c3a1067 100644
--- a/src/testing/testing_api_cmd_patch_template.c
+++ b/src/testing/testing_api_cmd_patch_template.c
@@ -224,7 +224,7 @@ TALER_TESTING_cmd_merchant_patch_template (
pis->template_id = template_id;
pis->http_status = http_status;
pis->template_description = template_description;
- pis->image = GNUNET_strdup (image);
+ pis->image = (NULL == image) ? NULL : GNUNET_strdup (image);
pis->template_contract = template_contract; /* ownership taken */
{
struct TALER_TESTING_Command cmd = {