From 32777186fe66bcabeb510c7841cf2b95bb869181 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 10 Mar 2017 18:12:36 +0100 Subject: [PATCH] check return value from GNUNET_program_run --- src/ats-tests/gnunet-solver-eval.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ats-tests/gnunet-solver-eval.c b/src/ats-tests/gnunet-solver-eval.c index 11e00c60f..b34caf77f 100644 --- a/src/ats-tests/gnunet-solver-eval.c +++ b/src/ats-tests/gnunet-solver-eval.c @@ -945,7 +945,13 @@ main (int argc, char *argv[]) GNUNET_GETOPT_OPTION_END }; - GNUNET_PROGRAM_run (argc, argv, argv[0], NULL, options, &run, argv[0]); + if (GNUNET_OK != + GNUNET_PROGRAM_run (argc, + argv, argv[0], + NULL, + options, + &run, argv[0])) + return 1; return 0; } -- 2.25.1