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:
Markus Mäkelä 2019-05-31 06:49:04 +03:00
parent 9df6c9aeca
commit a4ee390fe5
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -316,6 +316,7 @@ public:
Buffer(GWBUF* pBuffer)
: m_pBuffer(pBuffer)
{
mxb_assert(pBuffer);
}
/**