1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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.
This commit is contained in:
bar@mysql.com
2004-06-16 19:06:45 +05:00
parent 10d2bdcbcd
commit f814d224f7
3 changed files with 10 additions and 8 deletions

View File

@ -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;