exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 5fbe77bb76b2c8d76e11ab38bbb08be58e59aab5
parent a79b67c726e7a2d2ef44102e883b98423d129fbd
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri,  6 Nov 2020 10:11:15 +0100

fix return value from main() when run with -h/-v

Diffstat:
Msrc/exchange/taler-exchange-httpd.c | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c @@ -1302,11 +1302,13 @@ main (int argc, int fh = -1; enum TALER_MHD_GlobalOptions go; - if (0 >= - GNUNET_GETOPT_run ("taler-exchange-httpd", - options, - argc, argv)) + ret = GNUNET_GETOPT_run ("taler-exchange-httpd", + options, + argc, argv); + if (ret < 0) return 1; + if (0 == ret) + return 0; if (0 == num_threads) { cpu_set_t mask;