diff --git a/src/logging.cc b/src/logging.cc index c1adee5e4..d6e2fc079 100644 --- a/src/logging.cc +++ b/src/logging.cc @@ -1168,7 +1168,7 @@ void LogFileObject::CheckHistoryFileNum() { DIR *dp; const vector &log_dirs = GetLoggingDirectories(); - if (log_dirs.size() < 1) return; + if (log_dirs.empty()) return; // list file in log dir dp = opendir(log_dirs[0].c_str());