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]
```
This commit is contained in:
Aleksander Alekseev 2021-11-08 12:22:53 +03:00 committed by Aleksander Alekseev
parent 82656a6807
commit 0f5268ad49

View File

@ -87,8 +87,8 @@ ts_bgw_wait(PG_FUNCTION_ARGS)
/* This function contains a timeout of 5 seconds, so we iterate a few /* This function contains a timeout of 5 seconds, so we iterate a few
* times to make sure that it really has terminated. */ * times to make sure that it really has terminated. */
int notherbackends; int notherbackends = 0;
int npreparedxacts; int npreparedxacts = 0;
while (iterations-- > 0) while (iterations-- > 0)
{ {
if (!CountOtherDBBackends(dboid, &notherbackends, &npreparedxacts)) if (!CountOtherDBBackends(dboid, &notherbackends, &npreparedxacts))