Fix mxs::Buffer::copy_from

The code failed to compile when the function is used with a warning that
`pBuffer` was used without initialization. This makes sense as the first
conditional block re-declares the same parameter.
This commit is contained in:
Markus Mäkelä 2018-04-07 10:07:13 +03:00
parent 90eeba45df
commit f06b2b5ab9
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -429,7 +429,7 @@ public:
if (pBuffer)
{
GWBUF* pBuffer = gwbuf_clone(pBuffer);
pBuffer = gwbuf_clone(pBuffer);
if (!pBuffer)
{