Commit 24c44a9b authored by unknown's avatar unknown

Aix52 build fix


client/mysqldump.c:
  Declare variable in start of function
parent f7295f24
...@@ -3238,10 +3238,10 @@ static int replace(DYNAMIC_STRING *ds_str, ...@@ -3238,10 +3238,10 @@ static int replace(DYNAMIC_STRING *ds_str,
const char *search_str, ulong search_len, const char *search_str, ulong search_len,
const char *replace_str, ulong replace_len) const char *replace_str, ulong replace_len)
{ {
DYNAMIC_STRING ds_tmp;
const char *start= strstr(ds_str->str, search_str); const char *start= strstr(ds_str->str, search_str);
if (!start) if (!start)
return 1; return 1;
DYNAMIC_STRING ds_tmp;
init_dynamic_string(&ds_tmp, "", init_dynamic_string(&ds_tmp, "",
ds_str->length + replace_len, 256); ds_str->length + replace_len, 256);
dynstr_append_mem(&ds_tmp, ds_str->str, start - ds_str->str); dynstr_append_mem(&ds_tmp, ds_str->str, start - ds_str->str);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment