Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed coverity issue in acl_auto_configure.cpp #222

Merged
merged 1 commit into from
Jan 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/acl_auto_configure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,14 +724,12 @@ static bool read_accel_defs(const std::string &config_str,
accel[i].mem.next = reinterpret_cast<void *>(0x00020000);

int total_fields_kernel = 0;
if (result) {
result = read_int_counters(config_str, curr_pos, total_fields_kernel,
counters);
}
result = result && read_int_counters(config_str, curr_pos,
total_fields_kernel, counters);
counters.emplace_back(total_fields_kernel);

result =
read_string_counters(config_str, curr_pos, hal_info[i].name, counters);
result = result && read_string_counters(config_str, curr_pos,
hal_info[i].name, counters);

if (!result)
break;
Expand Down