taler-mdb

GNU Taler Extensions and Integrations
Log | Files | Refs | Submodules | README | LICENSE

commit c6d1cce6b5b06d6cbe470963655f3282c3399b16
parent a301dbd81c13c52aeda5989a04a4997827130077
Author: Dominik Hofer <dominik.hofer@bfh.ch>
Date:   Sat, 28 Dec 2019 16:08:21 +0100

fix

Diffstat:
Msrc/main.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -1642,7 +1642,7 @@ read_keyboard_command (void *cls) if (((char) input) == products[i].key) { if ( (sold_out_enabled) && - (products[i].sold_out) ) + (GNUNET_YES == products[i].sold_out) ) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Product %s sold out, denying vend\n", @@ -2002,7 +2002,7 @@ handle_command (const char *hex, "Product %u selected on MDB\n", product); if ( (sold_out_enabled) && - (products[i].sold_out) ) + (GNUNET_YES == products[i].sold_out) ) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Product %s sold out, denying vend\n", @@ -2403,6 +2403,10 @@ read_products (void *cls, { tmpProduct.sold_out = GNUNET_YES; } + else + { + tmpProduct.sold_out = GNUNET_NO; + } } if (GNUNET_OK != TALER_config_get_denom (cls,