diff options
author | Dominik Hofer <dominik.hofer@bfh.ch> | 2019-12-28 16:08:21 +0100 |
---|---|---|
committer | Dominik Hofer <dominik.hofer@bfh.ch> | 2019-12-28 16:08:21 +0100 |
commit | c6d1cce6b5b06d6cbe470963655f3282c3399b16 (patch) | |
tree | 5310ad3c5f1d9df1bb03f761f740d53bef0b8ef3 | |
parent | a301dbd81c13c52aeda5989a04a4997827130077 (diff) | |
download | taler-mdb-c6d1cce6b5b06d6cbe470963655f3282c3399b16.tar.gz taler-mdb-c6d1cce6b5b06d6cbe470963655f3282c3399b16.tar.bz2 taler-mdb-c6d1cce6b5b06d6cbe470963655f3282c3399b16.zip |
fix
-rw-r--r-- | src/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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, |