fix #4730: amount coult end up being zero, so check should be for SYSERR, not for OK (as zero implies NO)

This commit is contained in:
Christian Grothoff 2016-10-14 01:43:55 +02:00
parent 32d23e7499
commit 6987837f08
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -930,7 +930,7 @@ refresh_check_melt (struct MHD_Connection *connection,
if (TALER_amount_cmp (&coin_value,
&spent) < 0)
{
GNUNET_assert (GNUNET_OK ==
GNUNET_assert (GNUNET_SYSERR !=
TALER_amount_subtract (&coin_residual,
&spent,
&coin_details->melt_amount_with_fee));