diff options
author | unknown <guilhem@mysql.com> | 2004-11-16 00:04:12 +0100 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2004-11-16 00:04:12 +0100 |
commit | 445c9103a345c560d15beec8c7ad4c944c3b1d2c (patch) | |
tree | 4b3acfdee8480e9e03666d068ee6a08eed12672b /strings | |
parent | 6763a1da76a07c3962492acae491c341714f8b82 (diff) | |
parent | fa68d58087f0439fe9289ea3da830017a2ce5769 (diff) | |
download | mariadb-git-445c9103a345c560d15beec8c7ad4c944c3b1d2c.tar.gz |
Merge
Makefile.am:
Auto merged
client/Makefile.am:
Auto merged
client/mysqldump.c:
Auto merged
configure.in:
Auto merged
include/my_global.h:
Auto merged
sql/log_event.cc:
Auto merged
sql/log_event.h:
Auto merged
sql/sql_parse.cc:
SCCS merged
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-tis620.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/strings/ctype-tis620.c b/strings/ctype-tis620.c index a2ba4783591..68bfefafe6a 100644 --- a/strings/ctype-tis620.c +++ b/strings/ctype-tis620.c @@ -562,17 +562,13 @@ int my_strnncollsp_tis620(CHARSET_INFO * cs __attribute__((unused)), const uchar *b0, uint b_length) { uchar buf[80] ; - uchar *end, *a, *b; + uchar *end, *a, *b, *alloced= NULL; uint length; int res= 0; - int alloced= 0; a= buf; if ((a_length + b_length +2) > (int) sizeof(buf)) - { - a= (uchar*) malloc(a_length+b_length); - alloced= 1; - } + alloced= a= (uchar*) malloc(a_length+b_length); b= a + a_length+1; memcpy((char*) a, (char*) a0, a_length); @@ -618,7 +614,7 @@ int my_strnncollsp_tis620(CHARSET_INFO * cs __attribute__((unused)), ret: if (alloced) - free(a); + free(alloced); return res; } |