Skip to content

Commit

Permalink
fix(event.cpp): initialize Term::Button::Type type to prevent unini…
Browse files Browse the repository at this point in the history
…tialized variable exception
  • Loading branch information
gomes042 committed Dec 16, 2024
1 parent 4c7a536 commit 25eb2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp-terminal/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ void Term::Event::parse(const std::string& str)
if(str[str.size() - 1] == 'm') action = Term::Button::Action::Released;
else
action = Term::Button::Action::Pressed;
Term::Button::Type type;
Term::Button::Type type = Button::Type::None;
switch(values[0])
{
case 0:
Expand Down

0 comments on commit 25eb2e3

Please sign in to comment.