diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-05-08 17:04:44 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-05-08 17:04:44 (GMT) |
commit | b8f9ac6d69aa38afeca4d07d0bd8daa5333c02cb (patch) | |
tree | 48addf6092bd32e26e81d218f7f695c2bfd805a4 /src | |
parent | 24cfd54eae6f34e3596ca154be72f922d66e6c77 (diff) | |
download | fluxbox_pavel-b8f9ac6d69aa38afeca4d07d0bd8daa5333c02cb.zip fluxbox_pavel-b8f9ac6d69aa38afeca4d07d0bd8daa5333c02cb.tar.bz2 |
prevent crash if m_keylist is 0
again, i do not know yet, why this could happen.
Diffstat (limited to 'src')
-rw-r--r-- | src/Keys.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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) { | |||
527 | bool Keys::doAction(int type, unsigned int mods, unsigned int key, | 527 | bool Keys::doAction(int type, unsigned int mods, unsigned int key, |
528 | int context, WinClient *current, Time time) { | 528 | int context, WinClient *current, Time time) { |
529 | 529 | ||
530 | if (!m_keylist) | ||
531 | return false; | ||
532 | |||
530 | static Time last_button_time = 0; | 533 | static Time last_button_time = 0; |
531 | static unsigned int last_button = 0; | 534 | static unsigned int last_button = 0; |
532 | 535 | ||