summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_payback.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-06-18 11:25:38 +0200
committerChristian Grothoff <christian@grothoff.org>2019-06-18 11:25:38 +0200
commit6066ffcb9b07f9e2709d0382afa3fc05c52e21c7 (patch)
tree6f08cc9e4b38aea696b52755afc0565dd1f2c4a9 /src/exchange/taler-exchange-httpd_payback.c
parentb3cbe01079ea1044f8d1f8bf47e995443efe8390 (diff)
downloadexchange-6066ffcb9b07f9e2709d0382afa3fc05c52e21c7.tar.gz
exchange-6066ffcb9b07f9e2709d0382afa3fc05c52e21c7.tar.bz2
exchange-6066ffcb9b07f9e2709d0382afa3fc05c52e21c7.zip
dead code elimination
Diffstat (limited to 'src/exchange/taler-exchange-httpd_payback.c')
-rw-r--r--src/exchange/taler-exchange-httpd_payback.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/exchange/taler-exchange-httpd_payback.c b/src/exchange/taler-exchange-httpd_payback.c
index 06181519f..643b9fba9 100644
--- a/src/exchange/taler-exchange-httpd_payback.c
+++ b/src/exchange/taler-exchange-httpd_payback.c
@@ -315,7 +315,6 @@ verify_and_execute_payback (struct MHD_Connection *connection,
struct GNUNET_HashCode c_hash;
char *coin_ev;
size_t coin_ev_size;
- int mhd_ret;
/* check denomination exists and is in payback mode */
key_state = TEH_KS_acquire (GNUNET_TIME_absolute_get ());
@@ -414,14 +413,17 @@ verify_and_execute_payback (struct MHD_Connection *connection,
pc.coin_sig = coin_sig;
pc.coin_bks = coin_bks;
pc.coin = coin;
- if (GNUNET_OK !=
- TEH_DB_run_transaction (connection,
- "run payback",
- &mhd_ret,
- &payback_transaction,
- &pc))
- return mhd_ret;
+ {
+ int mhd_ret;
+ if (GNUNET_OK !=
+ TEH_DB_run_transaction (connection,
+ "run payback",
+ &mhd_ret,
+ &payback_transaction,
+ &pc))
+ return mhd_ret;
+ }
return reply_payback_success (connection,
&coin->coin_pub,
&pc.reserve_pub,