mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-17 19:13:16 +08:00
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:
parent
82656a6807
commit
0f5268ad49
@ -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, ¬herbackends, &npreparedxacts))
|
if (!CountOtherDBBackends(dboid, ¬herbackends, &npreparedxacts))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user