Skip to content

Commit 7a9c0ab

Browse files
committed
Removed unused suppresion and avoid copy of logPath
1 parent 4aad8e0 commit 7a9c0ab

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/audit_log/writer/parallel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ bool Parallel::write(Transaction *transaction, int parts, std::string *error) {
118118
log = transaction->toOldAuditLogFormat(parts, "-" + boundary + "--");
119119
}
120120

121-
std::string logPath = m_audit->m_storage_dir;
121+
const auto &logPath = m_audit->m_storage_dir;
122122
fileName = logPath + fileName + "-" + *transaction->m_id.get();
123123

124124
if (logPath.empty()) {

test/cppcheck_suppressions.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ shiftNegative:src/utils/msc_tree.cc
3333
useInitializationList:src/utils/shared_files.h:87
3434
duplicateBranch:src/audit_log/audit_log.cc:226
3535
unreadVariable:src/request_body_processor/multipart.cc:435
36-
stlcstrParam:src/audit_log/writer/parallel.cc:145
3736
syntaxError:src/transaction.cc:62
3837
noConstructor:src/variables/variable.h:152
3938
rethrowNoCurrentException:headers/modsecurity/transaction.h:313

0 commit comments

Comments
 (0)