1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Fixed wrong memory references found by purify

(No really critical errors found, but a few possible wrong results)
This commit is contained in:
monty@mysql.com
2005-02-28 11:59:46 +02:00
parent 88e1ebd01a
commit 253bfcf783
15 changed files with 148 additions and 56 deletions

View File

@ -246,7 +246,7 @@ bool log_in_use(const char* log_name)
if ((linfo = tmp->current_linfo))
{
pthread_mutex_lock(&linfo->lock);
result = !memcmp(log_name, linfo->log_file_name, log_name_len);
result = !bcmp(log_name, linfo->log_file_name, log_name_len);
pthread_mutex_unlock(&linfo->lock);
if (result)
break;