From 9473ef4d86d8029237c018c72bf6311a3fe54987 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 7 Jan 2021 20:52:11 +0100 Subject: fix remaining #6679 issues in exchange --- src/auditor/taler-helper-auditor-reserves.c | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'src/auditor/taler-helper-auditor-reserves.c') diff --git a/src/auditor/taler-helper-auditor-reserves.c b/src/auditor/taler-helper-auditor-reserves.c index 8b49f747c..8e53214ff 100644 --- a/src/auditor/taler-helper-auditor-reserves.c +++ b/src/auditor/taler-helper-auditor-reserves.c @@ -1677,24 +1677,29 @@ main (int argc, "timetravel"), GNUNET_GETOPT_OPTION_END }; + enum GNUNET_GenericReturnValue ret; /* force linker to link against libtalerutil; if we do not do this, the linker may "optimize" libtalerutil away and skip #TALER_OS_init(), which we do need */ (void) TALER_project_data_default (); - GNUNET_assert (GNUNET_OK == - GNUNET_log_setup ("taler-helper-auditor-reserves", - "MESSAGE", - NULL)); if (GNUNET_OK != - GNUNET_PROGRAM_run (argc, - argv, - "taler-helper-auditor-reserves", - "Audit Taler exchange reserve handling", - options, - &run, - NULL)) - return 1; + GNUNET_STRINGS_get_utf8_args (argc, argv, + &argc, &argv)) + return 4; + ret = GNUNET_PROGRAM_run ( + argc, + argv, + "taler-helper-auditor-reserves", + gettext_noop ("Audit Taler exchange reserve handling"), + options, + &run, + NULL); + GNUNET_free_nz ((void *) argv); + if (GNUNET_SYSERR == ret) + return 3; + if (GNUNET_NO == ret) + return 0; return global_ret; } -- cgit v1.2.3