summaryrefslogtreecommitdiff
path: root/sql/sql_string.cc
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2004-06-16 19:06:45 +0500
committerunknown <bar@mysql.com>2004-06-16 19:06:45 +0500
commit1efa7ea50f0d749d3fa48997fd394a1803303fc8 (patch)
tree8d0c8b3c10e2de694fda875e0d8bb9c2a9ffe178 /sql/sql_string.cc
parent7f7c311b73d2f65fa67b97e7a7af9dd510ae92d6 (diff)
downloadmariadb-git-1efa7ea50f0d749d3fa48997fd394a1803303fc8.tar.gz
Critical fixes after review:
- mutex was unlocked before the end of the critical sesion, - Portability issue: It's better to use (*alloc)(x) instead of alloc(x), if alloc is a function passed as an argument. - Use {} around if() block, to avoid possible problems with some Windows compilers.
Diffstat (limited to 'sql/sql_string.cc')
-rw-r--r--sql/sql_string.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_string.cc b/sql/sql_string.cc
index cf4f94ba966..1ec0faafa8f 100644
--- a/sql/sql_string.cc
+++ b/sql/sql_string.cc
@@ -370,7 +370,7 @@ bool String::copy(const char *str, uint32 arg_length,
bool String::set_ascii(const char *str, uint32 arg_length)
{
- if (!(str_charset->mbminlen > 1))
+ if (str_charset->mbminlen == 1)
{
set(str, arg_length, str_charset);
return 0;