1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix a typo bug in SimpleBuffer.read()

This commit is contained in:
Sergey Petrunya
2010-09-11 21:56:43 +04:00
parent 9b04caffd4
commit a730bb9caf

View File

@ -356,7 +356,7 @@ void SimpleBuffer::setup_reading(uchar **data1, size_t len1,
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;
*read_ptr1 =read(read_size1);
if (read_ptr2)