[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: -fix 0-length VLAs
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: -fix 0-length VLAs |
Date: |
Wed, 10 May 2023 00:43:25 +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 daf16f3c -fix 0-length VLAs
daf16f3c is described below
commit daf16f3c067b4397ed8ccb33a5b982763990d755
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed May 10 00:43:23 2023 +0200
-fix 0-length VLAs
---
src/backenddb/test_merchantdb.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c
index 7708326c..1db21539 100644
--- a/src/backenddb/test_merchantdb.c
+++ b/src/backenddb/test_merchantdb.c
@@ -388,7 +388,7 @@ test_lookup_instances (bool active_only,
unsigned int instances_length,
struct InstanceWithAccounts instances[])
{
- unsigned int results_matching[instances_length];
+ unsigned int results_matching[GNUNET_NZL (instances_length)];
struct TestLookupInstances_Closure cmp = {
.instances_to_cmp_length = instances_length,
.instances_to_cmp = instances,
@@ -3372,6 +3372,8 @@ make_transfer (const struct ExchangeSignkeyData *signkey,
const struct DepositData deposits[],
struct TransferData *transfer)
{
+ struct TALER_TrackTransferDetails *details = NULL;
+
GNUNET_CRYPTO_seed_weak_random (585);
GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK,
&transfer->wtid,
@@ -3379,9 +3381,6 @@ make_transfer (const struct ExchangeSignkeyData *signkey,
transfer->exchange_url = deposits[0].exchange_url;
transfer->verified = false;
transfer->confirmed = false;
-
- struct TALER_TrackTransferDetails *details = NULL;
-
transfer->data.details_length = 0;
GNUNET_assert (GNUNET_OK ==
TALER_amount_set_zero (deposits[0].amount_with_fee.currency,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: -fix 0-length VLAs,
gnunet <=