commit 76223a7a870034138e680559b73de151a887755d
parent bcd8706b33a7da54d82ef4038a5736cb5bd80085
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 1 Jan 2016 21:27:12 +0100
use init value from coin, not uninit and wrong pc array
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/lib/merchant_api_pay.c b/src/lib/merchant_api_pay.c
@@ -196,11 +196,11 @@ TALER_MERCHANT_pay_wallet (struct TALER_MERCHANT_Context *merchant,
GNUNET_CRYPTO_eddsa_key_get_public (&coin->coin_priv.eddsa_priv,
&dr.coin_pub.eddsa_pub);
TALER_amount_hton (&dr.amount_with_fee,
- &pc->amount_with_fee);
+ &coin->amount_with_fee);
if (GNUNET_SYSERR ==
TALER_amount_subtract (&fee,
- &pc->amount_with_fee,
- &pc->amount_without_fee))
+ &coin->amount_with_fee,
+ &coin->amount_without_fee))
{
/* Integer underflow, fee larger than total amount?
This should not happen (client violated API!) */