mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Aix52 build fix
This commit is contained in:
@ -3238,10 +3238,10 @@ static int replace(DYNAMIC_STRING *ds_str,
|
||||
const char *search_str, ulong search_len,
|
||||
const char *replace_str, ulong replace_len)
|
||||
{
|
||||
DYNAMIC_STRING ds_tmp;
|
||||
const char *start= strstr(ds_str->str, search_str);
|
||||
if (!start)
|
||||
return 1;
|
||||
DYNAMIC_STRING ds_tmp;
|
||||
init_dynamic_string(&ds_tmp, "",
|
||||
ds_str->length + replace_len, 256);
|
||||
dynstr_append_mem(&ds_tmp, ds_str->str, start - ds_str->str);
|
||||
|
Reference in New Issue
Block a user