diff --git a/cpp-terminal/event.cpp b/cpp-terminal/event.cpp index c3fbd7da..205dbb07 100644 --- a/cpp-terminal/event.cpp +++ b/cpp-terminal/event.cpp @@ -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: