gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] 01/03: fix odd missing initialization, ver


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 01/03: fix odd missing initialization, very strange that this did not show up before as a problem
Date: Wed, 13 Sep 2017 01:14:34 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

commit 632fd85f1b01c58115e5fdf5704d7369964c05b1
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Sep 12 23:52:23 2017 +0200

    fix odd missing initialization, very strange that this did not show up 
before as a problem
---
 src/exchange/taler-exchange-httpd_reserve_withdraw.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_reserve_withdraw.c 
b/src/exchange/taler-exchange-httpd_reserve_withdraw.c
index 2bc268d..4dad473 100644
--- a/src/exchange/taler-exchange-httpd_reserve_withdraw.c
+++ b/src/exchange/taler-exchange-httpd_reserve_withdraw.c
@@ -159,7 +159,7 @@ withdraw_transaction (void *cls,
                      int *mhd_ret)
 {
   struct WithdrawContext *wc = cls;
-  struct TALER_EXCHANGEDB_ReserveHistory *rh;  
+  struct TALER_EXCHANGEDB_ReserveHistory *rh;
   struct TALER_Amount deposit_total;
   struct TALER_Amount withdraw_total;
   struct TALER_Amount balance;
@@ -200,7 +200,7 @@ withdraw_transaction (void *cls,
   {
     if (GNUNET_DB_STATUS_HARD_ERROR == qs)
       *mhd_ret = TEH_RESPONSE_reply_internal_db_error (connection,
-                                                      
TALER_EC_WITHDRAW_DB_FETCH_ERROR); 
+                                                      
TALER_EC_WITHDRAW_DB_FETCH_ERROR);
     return qs;
   }
   if (NULL == rh)
@@ -237,7 +237,7 @@ withdraw_transaction (void *cls,
     case TALER_EXCHANGEDB_RO_WITHDRAW_COIN:
       {
        struct TALER_EXCHANGEDB_DenominationKeyIssueInformation *tdki;
-       
+
        tdki = TEH_KS_denomination_key_lookup (wc->key_state,
                                               
&pos->details.withdraw->denom_pub,
                                               TEH_KS_DKU_WITHDRAW);
@@ -321,7 +321,7 @@ withdraw_transaction (void *cls,
     GNUNET_break (0); /* database inconsistent */
     *mhd_ret = TEH_RESPONSE_reply_internal_db_error (connection,
                                                     
TALER_EC_WITHDRAW_RESERVE_HISTORY_IMPOSSIBLE);
-    return GNUNET_DB_STATUS_HARD_ERROR;        
+    return GNUNET_DB_STATUS_HARD_ERROR;
   }
   if (0 < TALER_amount_cmp (&wc->amount_required,
                             &balance))
@@ -348,6 +348,8 @@ withdraw_transaction (void *cls,
                                                  "Internal error");
     return GNUNET_DB_STATUS_HARD_ERROR;
   }
+  TALER_amount_ntoh (&fee_withdraw,
+                     &wc->dki->issue.properties.fee_withdraw);
   wc->collectable.sig = denom_sig;
   wc->collectable.denom_pub = wc->denomination_pub;
   wc->collectable.amount_with_fee = wc->amount_required;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]