commit dbd6edd6617647208e59665bcdbf7ce985a4ed28
parent 4b9062c3a7d38c41ba970e630e759a899b171e71
Author: priscilla <priscilla.huang@efrei.net>
Date: Fri, 30 Dec 2022 10:35:59 -0500
get template - image error
Diffstat:
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
@@ -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
@@ -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
@@ -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 = {