Add missing pointer initialization
The change from SRWBackend to RWBackend* had some side effects, namely the missing automatic initialization into zero values.
This commit is contained in:
@ -322,7 +322,7 @@ static void log_server_connections(select_criteria_t criteria, const PRWBackends
|
||||
|
||||
RWBackend* get_root_master(const PRWBackends& backends)
|
||||
{
|
||||
RWBackend* master;
|
||||
RWBackend* master = nullptr;
|
||||
for (auto candidate : backends)
|
||||
{
|
||||
if (candidate->is_master())
|
||||
|
||||
Reference in New Issue
Block a user