mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 23:35:32 +02:00
Fixed trival bug introduced in last patch (buffer was not extended)
This commit is contained in:
parent
5a2f40d48a
commit
f7d6a2ed65
1 changed files with 5 additions and 1 deletions
|
|
@ -489,7 +489,11 @@ int ha_tina::encode_quote(uchar *buf)
|
|||
ptr= attribute.ptr();
|
||||
end_ptr= attribute.length() + ptr;
|
||||
|
||||
if (buffer.realloc(attribute.length()*2+2))
|
||||
/*
|
||||
Ensure that buffer is big enough. This will also speed things up
|
||||
as we don't have to do any new allocation in the loop below
|
||||
*/
|
||||
if (buffer.realloc(buffer.length() + attribute.length()*2+2))
|
||||
return 0; // Failure
|
||||
|
||||
buffer.append('"');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue