From b8f9ac6d69aa38afeca4d07d0bd8daa5333c02cb Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Sat, 8 May 2010 19:04:44 +0200 Subject: prevent crash if m_keylist is 0 again, i do not know yet, why this could happen. --- src/Keys.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Keys.cc b/src/Keys.cc index d528d00..f03dc01 100644 --- a/src/Keys.cc +++ b/src/Keys.cc @@ -527,6 +527,9 @@ bool Keys::addBinding(const string &linebuffer) { bool Keys::doAction(int type, unsigned int mods, unsigned int key, int context, WinClient *current, Time time) { + if (!m_keylist) + return false; + static Time last_button_time = 0; static unsigned int last_button = 0; -- cgit v0.11.2