summaryrefslogtreecommitdiff
path: root/sql/thr_malloc.cc
diff options
context:
space:
mode:
authorbar@mysql.com <>2004-10-29 17:00:39 +0500
committerbar@mysql.com <>2004-10-29 17:00:39 +0500
commit7577c8bfc9efb21b8a8a3c08e342054e754370ab (patch)
tree9cc9765d8b1a393421a6e3df083461c690d1c028 /sql/thr_malloc.cc
parent64c59b37f899e520f6ba3ff8d0f9724423eb9b88 (diff)
downloadmariadb-git-7577c8bfc9efb21b8a8a3c08e342054e754370ab.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;