summaryrefslogtreecommitdiff
path: root/sql/thr_malloc.cc
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2004-10-29 17:00:39 +0500
committerunknown <bar@mysql.com>2004-10-29 17:00:39 +0500
commit6e781e11a9f7606b8b41532c382df9cf00617d17 (patch)
tree9cc9765d8b1a393421a6e3df083461c690d1c028 /sql/thr_malloc.cc
parentfcb322279eba22dcc29093d0212ea5a21f78ed59 (diff)
downloadmariadb-git-6e781e11a9f7606b8b41532c382df9cf00617d17.tar.gz
A fix according to Monty's request:
"uint *errors" is now a non-optional parameter in String:copy() and copy_and_convert().
Diffstat (limited to 'sql/thr_malloc.cc')
-rw-r--r--sql/thr_malloc.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/thr_malloc.cc b/sql/thr_malloc.cc
index fa678ec7de2..0df60858bcb 100644
--- a/sql/thr_malloc.cc
+++ b/sql/thr_malloc.cc
@@ -108,8 +108,11 @@ char *sql_strmake_with_convert(const char *str, uint32 arg_length,
memcpy(pos, str, new_length);
}
else
+ {
+ uint dummy_errors;
new_length= copy_and_convert((char*) pos, new_length, to_cs, str,
- arg_length, from_cs);
+ arg_length, from_cs, &dummy_errors);
+ }
pos[new_length]= 0;
*result_length= new_length;
return pos;