summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorunknown <ramil/ram@ramil.myoffice.izhnet.ru>2007-11-29 15:12:09 +0400
committerunknown <ramil/ram@ramil.myoffice.izhnet.ru>2007-11-29 15:12:09 +0400
commit36486ee86c8ba3eddeaed752e5e0c87498502058 (patch)
treea1d944bd78eab9bc17d07bb90ab50b73897307b3 /strings
parent060ccef0128ec03c4f816743fd6e8c07d9afdaa7 (diff)
parent3f42e6ff9b98ebefdb684c0370872cb98f3a5aa2 (diff)
downloadmariadb-git-36486ee86c8ba3eddeaed752e5e0c87498502058.tar.gz
Merge mysql.com:/home/ram/work/mysql-5.0-engines
into mysql.com:/home/ram/work/b32726/b32726.5.0 mysql-test/r/ctype_euckr.result: Auto merged mysql-test/r/ctype_uca.result: Auto merged
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-cp932.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/strings/ctype-cp932.c b/strings/ctype-cp932.c
index 42325648037..48c217921b1 100644
--- a/strings/ctype-cp932.c
+++ b/strings/ctype-cp932.c
@@ -5359,12 +5359,12 @@ my_wc_mb_cp932(CHARSET_INFO *cs __attribute__((unused)),
static int
my_mb_wc_cp932(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e){
- int hi=s[0];
+ int hi;
if (s >= e)
return MY_CS_TOOSMALL;
- if (hi < 0x80)
+ if ((hi= s[0]) < 0x80)
{
pwc[0]=hi;
return 1;