diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-10-30 16:48:37 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-10-30 16:48:37 +0200 |
commit | 9e840d6898fb3739b441597b9da52c6eba8fe323 (patch) | |
tree | 73882a74ff5dc6ff56465d7d438479f10939bb4b /sql/lex_string.h | |
parent | 03357ded174c13d941abc37e8c12506d75aaa52d (diff) | |
download | mariadb-git-bb-10.5-MDEV-22387.tar.gz |
WIP MDEV-22387bb-10.5-MDEV-22387
Diffstat (limited to 'sql/lex_string.h')
-rw-r--r-- | sql/lex_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/lex_string.h b/sql/lex_string.h index 008e5f75812..4fa92dc3565 100644 --- a/sql/lex_string.h +++ b/sql/lex_string.h @@ -81,7 +81,7 @@ static inline bool cmp(const LEX_CSTRING *a, const LEX_CSTRING *b) } static inline bool cmp(const LEX_CSTRING a, const LEX_CSTRING b) { - return a.length != b.length || memcmp(a.str, b.str, a.length); + return a.length != b.length || (a.length && memcmp(a.str, b.str, a.length)); } /* |