summaryrefslogtreecommitdiff
path: root/keys.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-01-20 13:19:35 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-01-20 13:19:35 +0100
commitef385702d0d821f9d7efebef1e87d4e9da9db721 (patch)
treed135d28d587550107c53140a0fc5083f5cdad091 /keys.c
parent29501203f7b6818258d438d8826ac02c60e08494 (diff)
downloadvdr-ef385702d0d821f9d7efebef1e87d4e9da9db721.tar.gz
vdr-ef385702d0d821f9d7efebef1e87d4e9da9db721.tar.bz2
Fixed a problem with @plugin in keymacros.conf in case the named plugin is not loaded
Diffstat (limited to 'keys.c')
-rw-r--r--keys.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/keys.c b/keys.c
index 4215d7be..9fd5552f 100644
--- a/keys.c
+++ b/keys.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: keys.c 1.10 2006/01/05 15:39:26 kls Exp $
+ * $Id: keys.c 1.11 2006/01/16 17:01:25 kls Exp $
*/
#include "keys.h"
@@ -250,9 +250,11 @@ cKeyMacros KeyMacros;
const cKeyMacro *cKeyMacros::Get(eKeys Key)
{
- for (cKeyMacro *k = First(); k; k = Next(k)) {
- if (*k->Macro() == Key)
- return k;
- }
+ if (Key != kNone) {
+ for (cKeyMacro *k = First(); k; k = Next(k)) {
+ if (*k->Macro() == Key)
+ return k;
+ }
+ }
return NULL;
}