diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-16 11:57:32 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-16 11:57:32 +0100 |
commit | a12ee00d3b03433700d12da74e4691941f01f77e (patch) | |
tree | 45031c617a5db8424996f543b586ad0bf0641413 /src/lib/testing_api_cmd_bank_history_debit.c | |
parent | 2e6d284e039acdc2fef37ca5b781f1ecee6a548d (diff) | |
download | exchange-a12ee00d3b03433700d12da74e4691941f01f77e.tar.gz exchange-a12ee00d3b03433700d12da74e4691941f01f77e.tar.bz2 exchange-a12ee00d3b03433700d12da74e4691941f01f77e.zip |
fix really stupid bugs
Diffstat (limited to 'src/lib/testing_api_cmd_bank_history_debit.c')
-rw-r--r-- | src/lib/testing_api_cmd_bank_history_debit.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/testing_api_cmd_bank_history_debit.c b/src/lib/testing_api_cmd_bank_history_debit.c index a45c6da89..746a4ef12 100644 --- a/src/lib/testing_api_cmd_bank_history_debit.c +++ b/src/lib/testing_api_cmd_bank_history_debit.c @@ -250,7 +250,7 @@ build_history (struct TALER_TESTING_Interpreter *is, const char *credit_account; const struct TALER_Amount *amount; const struct TALER_WireTransferIdentifierRawP *wtid; - const char *account_url; + const char *account_debit_url; if ( (GNUNET_OK != TALER_TESTING_get_trait_bank_row (cmd, @@ -273,8 +273,8 @@ build_history (struct TALER_TESTING_Interpreter *is, &wtid)) || (GNUNET_OK != TALER_TESTING_get_trait_url (cmd, - 1, - &account_url)) ) + 0, + &account_debit_url)) ) continue; /* not an event we care about */ /* Seek "/history" starting row. */ if ( (NULL != row_id_start) && @@ -306,12 +306,12 @@ build_history (struct TALER_TESTING_Interpreter *is, GNUNET_array_grow (h, total, pos * 2); - h[total].url = GNUNET_strdup (credit_account); - h[total].details.credit_account_url = h[total].url; - h[total].details.amount = *amount; - h[total].row_id = *row_id; - h[total].details.wtid = *wtid; - h[total].details.debit_account_url = account_url; + h[pos].url = GNUNET_strdup (credit_account); + h[pos].details.credit_account_url = h[pos].url; + h[pos].details.amount = *amount; + h[pos].row_id = *row_id; + h[pos].details.wtid = *wtid; + h[pos].details.debit_account_url = account_debit_url; pos++; } GNUNET_assert (GNUNET_YES == ok); |