Skip to content

Commit

Permalink
Fix Windows uninit warning
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav92003 committed Feb 14, 2025
1 parent efe9774 commit b8b27e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion clients/drcachesim/scheduler/scheduler_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,11 @@ scheduler_impl_tmpl_t<RecordType, ReaderType>::read_kernel_sequences(
sequence[sequence_key].push_back(record);
}
if (is_marker && marker_type == end_marker) {
if (!in_sequence || static_cast<SequenceKey>(marker_value) != sequence_key) {
if (!in_sequence) {
error_string_ += sequence_type + " end marker found without start";
return sched_type_t::STATUS_ERROR_INVALID_PARAMETER;
}
if (static_cast<SequenceKey>(marker_value) != sequence_key) {
error_string_ += sequence_type + " marker values mismatched";
return sched_type_t::STATUS_ERROR_INVALID_PARAMETER;
}
Expand Down

0 comments on commit b8b27e2

Please sign in to comment.