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:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user