summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/log.cc b/sql/log.cc
index 87b5d2362cf..1b53ca74d1a 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -267,7 +267,7 @@ int MYSQL_LOG::find_first_log(LOG_INFO* linfo, const char* log_name)
// if the log entry matches, empty string matching anything
if (!log_name_len ||
- (log_name_len == length+1 && fname[log_name_len] == '\n' &&
+ (log_name_len == length-1 && fname[log_name_len] == '\n' &&
!memcmp(fname, log_name, log_name_len)))
{
fname[length-1]=0; // remove last \n