gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] 01/02: get template - image error


From: gnunet
Subject: [taler-merchant] 01/02: get template - image error
Date: Tue, 03 Jan 2023 13:19:25 +0100

This is an automated email from the git hooks/post-receive script.

priscilla-huang pushed a commit to branch master
in repository merchant.

commit dbd6edd6617647208e59665bcdbf7ce985a4ed28
Author: priscilla <priscilla.huang@efrei.net>
AuthorDate: Fri Dec 30 10:35:59 2022 -0500

    get template - image error
---
 src/lib/merchant_api_get_template.c          | 2 +-
 src/testing/testing_api_cmd_get_template.c   | 2 +-
 src/testing/testing_api_cmd_patch_template.c | 2 +-
 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 = {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]