Fix use of uninitialized variables
Building with optimization in debug mode revealed code that could in theory result in undefined behavior.
This commit is contained in:
@ -149,7 +149,7 @@ public:
|
||||
static MXS_ROUTER_SESSION* newSession(MXS_ROUTER* pInstance, MXS_SESSION* pSession)
|
||||
{
|
||||
RouterType* pRouter = static_cast<RouterType*>(pInstance);
|
||||
RouterSessionType* pRouter_session;
|
||||
RouterSessionType* pRouter_session = nullptr;
|
||||
|
||||
MXS_EXCEPTION_GUARD(pRouter_session = pRouter->newSession(pSession));
|
||||
|
||||
|
Reference in New Issue
Block a user