gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: fix uninitialized values


From: gnunet
Subject: [taler-merchant] branch master updated: fix uninitialized values
Date: Sat, 29 Aug 2020 12:43:51 +0200

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

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new e6c051c  fix uninitialized values
e6c051c is described below

commit e6c051c5f9a7391adead16212befea81d1e0c073
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Aug 29 12:43:49 2020 +0200

    fix uninitialized values
---
 src/backenddb/test_merchantdb.c           | 19 ++++++++++++-------
 src/testing/testing_api_cmd_claim_order.c |  1 +
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c
index f91d495..afb1a38 100644
--- a/src/backenddb/test_merchantdb.c
+++ b/src/backenddb/test_merchantdb.c
@@ -6394,8 +6394,8 @@ struct TestLookupOrdersAllFilters_Closure
  * @param cls the closure.
  */
 static void
-pre_test_lookup_orders_all_filters (struct
-                                    TestLookupOrdersAllFilters_Closure *cls)
+pre_test_lookup_orders_all_filters (
+  struct TestLookupOrdersAllFilters_Closure *cls)
 {
   make_instance ("test_inst_lookup_orders_all_filters",
                  &cls->instance);
@@ -6427,8 +6427,8 @@ pre_test_lookup_orders_all_filters (struct
  * @param cls the closure.
  */
 static void
-post_test_lookup_orders_all_filters (struct
-                                     TestLookupOrdersAllFilters_Closure *cls)
+post_test_lookup_orders_all_filters (
+  struct TestLookupOrdersAllFilters_Closure *cls)
 {
   free_instance_data (&cls->instance);
   for (unsigned int i = 0; i < 64; ++i)
@@ -6446,8 +6446,8 @@ post_test_lookup_orders_all_filters (struct
  * @return 0 on success, 1 otherwise.
  */
 static int
-run_test_lookup_orders_all_filters (struct
-                                    TestLookupOrdersAllFilters_Closure *cls)
+run_test_lookup_orders_all_filters (
+  struct TestLookupOrdersAllFilters_Closure *cls)
 {
   /* Order filter extravaganza */
   struct
@@ -6595,8 +6595,13 @@ static int
 test_lookup_orders_all_filters (void)
 {
   struct TestLookupOrdersAllFilters_Closure test_cls;
+  int test_result;
+
+  memset (&test_cls,
+          0,
+          sizeof (test_cls));
   pre_test_lookup_orders_all_filters (&test_cls);
-  int test_result = run_test_lookup_orders_all_filters (&test_cls);
+  test_result = run_test_lookup_orders_all_filters (&test_cls);
   post_test_lookup_orders_all_filters (&test_cls);
   return test_result;
 }
diff --git a/src/testing/testing_api_cmd_claim_order.c 
b/src/testing/testing_api_cmd_claim_order.c
index 314f1c6..f3724e0 100644
--- a/src/testing/testing_api_cmd_claim_order.c
+++ b/src/testing/testing_api_cmd_claim_order.c
@@ -199,6 +199,7 @@ order_claim_run (void *cls,
                                 &dummy_nonce,
                                 sizeof (dummy_nonce));
     nonce = &dummy_nonce;
+    claim_token = NULL;
   }
   else
   {

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