This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 232f37ad16 Coverity 1497246: AUTO_CAUSES_COPY (#10496)
232f37ad16 is described below
commit 232f37ad1658b17fab1793b355b1c122b46ee03b
Author: Bryan Call <[email protected]>
AuthorDate: Fri Sep 22 13:37:18 2023 -0700
Coverity 1497246: AUTO_CAUSES_COPY (#10496)
---
src/traffic_logstats/logstats.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/traffic_logstats/logstats.cc b/src/traffic_logstats/logstats.cc
index 53887dd54b..a443857097 100644
--- a/src/traffic_logstats/logstats.cc
+++ b/src/traffic_logstats/logstats.cc
@@ -1277,7 +1277,7 @@ parse_log_buff(LogBufferHeader *buf_header, bool summary
= false, bool aggregate
// Validate the fieldlist
field = fieldlist->first();
const std::string_view test_fields[] = {"cqtq", "ttms", "chi", "crc",
"pssc", "psql", "cqhm", "pquc", "caun", "phr", "shn"};
- for (auto i : test_fields) {
+ for (auto &i : test_fields) {
if (i != field->symbol()) {
cerr << "Error parsing log file - expected field: " << i << ", but
read field: " << field->symbol() << endl;
return 1;