summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_withdraw.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-12 11:42:25 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-12 11:42:25 +0100
commitea4be7ba6fcbd8ba6860f3fc7234a51c474f4e30 (patch)
tree04722fd0673f9bba13741d8e59426e4ee15b2216 /src/exchange/taler-exchange-httpd_withdraw.c
parent8a3e88fbf1b7f35baf20dbac747ed025e3ad9f26 (diff)
downloadexchange-ea4be7ba6fcbd8ba6860f3fc7234a51c474f4e30.tar.gz
exchange-ea4be7ba6fcbd8ba6860f3fc7234a51c474f4e30.tar.bz2
exchange-ea4be7ba6fcbd8ba6860f3fc7234a51c474f4e30.zip
-swap argument/rval for nicer code
Diffstat (limited to 'src/exchange/taler-exchange-httpd_withdraw.c')
-rw-r--r--src/exchange/taler-exchange-httpd_withdraw.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_withdraw.c b/src/exchange/taler-exchange-httpd_withdraw.c
index 8598f1322..7572f85d2 100644
--- a/src/exchange/taler-exchange-httpd_withdraw.c
+++ b/src/exchange/taler-exchange-httpd_withdraw.c
@@ -499,12 +499,10 @@ TEH_handler_withdraw (struct TEH_RequestContext *rc,
// TODO: if CS: check nonce for reuse
/* Sign before transaction! */
- ec = TALER_EC_NONE;
- // FIXME: swap arguments!
- wc.collectable.sig = TEH_keys_denomination_sign (
+ ec = TEH_keys_denomination_sign (
&wc.collectable.denom_pub_hash,
&wc.blinded_planchet,
- &ec);
+ &wc.collectable.sig);
if (TALER_EC_NONE != ec)
{
GNUNET_break (0);