From: Martin Schwenke Date: Sat, 26 Jul 2025 02:22:55 +0000 (+1000) Subject: ctdb-tests: Fix CID 1659221 - Error handling issues (CHECKED_RETURN) X-Git-Tag: tdb-1.4.14~77 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=7c7455926d9163286d9bf0e5cb3c3f2032e88bcd;p=thirdparty%2Fsamba.git ctdb-tests: Fix CID 1659221 - Error handling issues (CHECKED_RETURN) Signed-off-by: Martin Schwenke Reviewed-by: Anoop C S Autobuild-User(master): Anoop C S Autobuild-Date(master): Mon Jul 28 06:45:51 UTC 2025 on atb-devel-224 --- diff --git a/ctdb/tests/src/tunable_test.c b/ctdb/tests/src/tunable_test.c index 748b31e2372..f70fe609385 100644 --- a/ctdb/tests/src/tunable_test.c +++ b/ctdb/tests/src/tunable_test.c @@ -51,7 +51,10 @@ int main(int argc, const char **argv) mem_ctx = talloc_new(NULL); assert(mem_ctx != NULL); - logging_init(mem_ctx, "file:", NULL, "tunable_test"); + ret = logging_init(mem_ctx, "file:", NULL, "tunable_test"); + if (ret != 0) { + fprintf(stderr, "%s: error initialising logging\n", argv[0]); + } ctdb_tunable_set_defaults(&tun_list);