gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] 05/05: allow pos_key being NULL


From: gnunet
Subject: [taler-merchant] 05/05: allow pos_key being NULL
Date: Mon, 20 Feb 2023 18:19:49 +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 1d5bd1999987323adf353a31f46c81c0685d8c4f
Author: priscilla <priscilla.huang@efrei.net>
AuthorDate: Mon Feb 20 12:19:35 2023 -0500

    allow pos_key being NULL
---
 src/backend/taler-merchant-httpd_private-post-templates.c | 8 ++++++--
 src/testing/testing_api_cmd_post_templates.c              | 4 ----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_private-post-templates.c 
b/src/backend/taler-merchant-httpd_private-post-templates.c
index 91f8c182..ac2a9206 100644
--- a/src/backend/taler-merchant-httpd_private-post-templates.c
+++ b/src/backend/taler-merchant-httpd_private-post-templates.c
@@ -47,8 +47,12 @@ templates_equal (const struct 
TALER_MERCHANTDB_TemplateDetails *t1,
 {
   return ( (0 == strcmp (t1->template_description,
                          t2->template_description)) &&
-           (0 == strcmp (t1->pos_key,
-                         t2->pos_key) ) &&
+           ( ( (NULL == t1->pos_key) &&
+               (NULL == t2->pos_key) ) ||
+             ( (NULL != t1->pos_key) &&
+               (NULL != t2->pos_key) &&
+               (0 == strcmp (t1->pos_key,
+                             t2->pos_key))) ) &&
            (1 == json_equal (t1->template_contract,
                              t2->template_contract)) );
 }
diff --git a/src/testing/testing_api_cmd_post_templates.c 
b/src/testing/testing_api_cmd_post_templates.c
index 85dea3a4..434ddb96 100644
--- a/src/testing/testing_api_cmd_post_templates.c
+++ b/src/testing/testing_api_cmd_post_templates.c
@@ -97,10 +97,6 @@ post_templates_cb (void *cls,
                 hr->http_status,
                 (int) hr->ec,
                 TALER_TESTING_interpreter_get_current_label (tis->is));
-    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                "tis %u vs hr %u",
-                tis->http_status,
-                hr->http_status);
     TALER_TESTING_interpreter_fail (tis->is);
     return;
   }

-- 
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]