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:
parent
90eeba45df
commit
f06b2b5ab9
@ -429,7 +429,7 @@ public:
|
||||
|
||||
if (pBuffer)
|
||||
{
|
||||
GWBUF* pBuffer = gwbuf_clone(pBuffer);
|
||||
pBuffer = gwbuf_clone(pBuffer);
|
||||
|
||||
if (!pBuffer)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user