Skip to content

Commit

Permalink
Initialize byte transitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
SharafMohamed committed Dec 6, 2024
1 parent a12a360 commit 244d122
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/log_surgeon/finite_automata/RegexDFAState.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class RegexDFAState {
public:
using Tree = UnicodeIntervalTree<RegexDFAState<stateType>*>;

RegexDFAState() {
std::fill(std::begin(m_bytes_transition), std::end(m_bytes_transition), nullptr);
}

auto add_matching_variable_id(uint32_t const variable_id) -> void {
m_matching_variable_ids.push_back(variable_id);
}
Expand Down

0 comments on commit 244d122

Please sign in to comment.