aboutsummaryrefslogtreecommitdiff
path: root/src/backenddb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-04 17:07:51 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-04 17:07:51 +0200
commitccfc69ed28b7c5efa685b0d5255534a28d1d6f5b (patch)
treef5f6bf7c778cc4e6b96fe782c994f4e388b4970b /src/backenddb
parentb314ea0bedef479eaf7bdfd4593ef337ec3fe74c (diff)
downloadmerchant-ccfc69ed28b7c5efa685b0d5255534a28d1d6f5b.tar.gz
merchant-ccfc69ed28b7c5efa685b0d5255534a28d1d6f5b.tar.bz2
merchant-ccfc69ed28b7c5efa685b0d5255534a28d1d6f5b.zip
declare var at beginning of scope...
Diffstat (limited to 'src/backenddb')
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index 96a5de9d..7e5dd91e 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -2609,6 +2609,7 @@ process_deposits_for_refund_cb (void *cls,
{
const struct TALER_Amount *increment;
struct TALER_Amount left;
+ struct TALER_Amount remaining_refund;
/* How much of the coin is left after the existing refunds? */
if (GNUNET_SYSERR ==
@@ -2631,8 +2632,6 @@ process_deposits_for_refund_cb (void *cls,
continue;
}
- struct TALER_Amount remaining_refund;
-
/* How much of the refund is left? */
if (GNUNET_SYSERR ==
TALER_amount_subtract (&remaining_refund,