aboutsummaryrefslogtreecommitdiff
path: root/src
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
parent4b9062c3a7d38c41ba970e630e759a899b171e71 (diff)
get template - image error
Diffstat (limited to 'src')
-rw-r--r--src/lib/merchant_api_get_template.c2
-rw-r--r--src/testing/testing_api_cmd_get_template.c2
-rw-r--r--src/testing/testing_api_cmd_patch_template.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/merchant_api_get_template.c b/src/lib/merchant_api_get_template.c
index bced4097..b2dc2b86 100644
--- a/src/lib/merchant_api_get_template.c
+++ b/src/lib/merchant_api_get_template.c
@@ -176,7 +176,7 @@ TALER_MERCHANT_template_get (
char *path;
GNUNET_asprintf (&path,
- "private/templates/%s",
+ "private/templcdates/%s",
template_id);
tgh->url = TALER_url_join (backend_url,
path,
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 = {