summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_db.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-10-19 11:01:40 +0200
committerChristian Grothoff <christian@grothoff.org>2018-10-19 11:01:49 +0200
commitfb952babf67c41dedf3fac6b9d89eccf7fc10b2e (patch)
tree2194d42b483b70cb01acc7a36e6e6b9821720376 /src/exchange/taler-exchange-httpd_db.c
parent9114794bee49af5d7c38d7f69a31808e4dedb6b1 (diff)
downloadexchange-fb952babf67c41dedf3fac6b9d89eccf7fc10b2e.tar.gz
exchange-fb952babf67c41dedf3fac6b9d89eccf7fc10b2e.tar.bz2
exchange-fb952babf67c41dedf3fac6b9d89eccf7fc10b2e.zip
reduce redundant data fetch (#5444)
Diffstat (limited to 'src/exchange/taler-exchange-httpd_db.c')
-rw-r--r--src/exchange/taler-exchange-httpd_db.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c
index 34993150b..579f0620b 100644
--- a/src/exchange/taler-exchange-httpd_db.c
+++ b/src/exchange/taler-exchange-httpd_db.c
@@ -172,13 +172,12 @@ TEH_DB_calculate_transaction_list_totals (struct TALER_EXCHANGEDB_TransactionLis
struct TALER_Amount *ret)
{
struct TALER_Amount spent = *off;
- struct TALER_EXCHANGEDB_TransactionList *pos;
struct TALER_Amount refunded;
GNUNET_assert (GNUNET_OK ==
TALER_amount_get_zero (spent.currency,
&refunded));
- for (pos = tl; NULL != pos; pos = pos->next)
+ for (struct TALER_EXCHANGEDB_TransactionList *pos = tl; NULL != pos; pos = pos->next)
{
switch (pos->type)
{