From 5fbe77bb76b2c8d76e11ab38bbb08be58e59aab5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 6 Nov 2020 10:11:15 +0100 Subject: fix return value from main() when run with -h/-v --- src/exchange/taler-exchange-httpd.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 98120a220..aa477eb2b 100644 --- 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; -- cgit v1.2.3