benchmark: don't crash on --help

This commit is contained in:
Florian Dold 2018-09-21 15:15:30 +02:00
parent 281c5e3879
commit ff96695e47
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -849,13 +849,12 @@ main (int argc,
unsetenv ("XDG_DATA_HOME");
unsetenv ("XDG_CONFIG_HOME");
if (GNUNET_SYSERR ==
if (0 >=
(result = GNUNET_GETOPT_run ("taler-exchange-benchmark",
options,
argc,
argv)))
{
TALER_LOG_ERROR ("Unparsable CLI options\n");
return BAD_CLI_ARG;
}
GNUNET_log_setup ("taler-exchange-benchmark",