mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Fix a typo bug in SimpleBuffer.read()
This commit is contained in:
@@ -356,7 +356,7 @@ void SimpleBuffer::setup_reading(uchar **data1, size_t len1,
|
|||||||
|
|
||||||
bool SimpleBuffer::read()
|
bool SimpleBuffer::read()
|
||||||
{
|
{
|
||||||
if (!have_data(read_size1 + read_ptr2? read_size2 : 0))
|
if (!have_data(read_size1 + (read_ptr2? read_size2 : 0)))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
*read_ptr1 =read(read_size1);
|
*read_ptr1 =read(read_size1);
|
||||||
if (read_ptr2)
|
if (read_ptr2)
|
||||||
|
Reference in New Issue
Block a user