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:
Markus Mäkelä
2018-12-28 08:19:23 +02:00
parent 459eb003de
commit 4d0a40ef9f
3 changed files with 7 additions and 7 deletions

View File

@ -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())