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:
@ -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;
|
||||
|
Reference in New Issue
Block a user