Never construct mxs::Buffer from nullptr
A mxs::Buffer should never be constructed from a null pointer and if done, it is very likely due to an error.
This commit is contained in:
@ -316,6 +316,7 @@ public:
|
|||||||
Buffer(GWBUF* pBuffer)
|
Buffer(GWBUF* pBuffer)
|
||||||
: m_pBuffer(pBuffer)
|
: m_pBuffer(pBuffer)
|
||||||
{
|
{
|
||||||
|
mxb_assert(pBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user