From 0f5268ad49cab42b6876623b7b01b048d9ab0166 Mon Sep 17 00:00:00 2001 From: Aleksander Alekseev Date: Mon, 8 Nov 2021 12:22:53 +0300 Subject: [PATCH] Fix possible uninitialized value in test_utils.c Supress the following CLang warning: ``` warning: 2nd function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage] ``` --- test/src/test_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/test_utils.c b/test/src/test_utils.c index a5feb24b6..248703412 100644 --- a/test/src/test_utils.c +++ b/test/src/test_utils.c @@ -87,8 +87,8 @@ ts_bgw_wait(PG_FUNCTION_ARGS) /* This function contains a timeout of 5 seconds, so we iterate a few * times to make sure that it really has terminated. */ - int notherbackends; - int npreparedxacts; + int notherbackends = 0; + int npreparedxacts = 0; while (iterations-- > 0) { if (!CountOtherDBBackends(dboid, ¬herbackends, &npreparedxacts))