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

@ -68,7 +68,7 @@ RWSplitSession* RWSplitSession::create(RWSplit* router, MXS_SESSION* session)
* If sessions without master are allowed, only a slave must be found.
*/
RWBackend* master;
RWBackend* master = nullptr;
auto backend_ptrs = sptr_vec_to_ptr_vec(backends);