summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-10-12 15:22:29 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-10-12 15:22:29 +0200
commitfadc2565d468afca10448600033b73af1ef74978 (patch)
tree3dfac29cb3b96acaf4a01f32dd6fec493000ad24 /remote.c
parentec5795bda2aae521c81e101ec109b8bc74e3e19d (diff)
downloadvdr-fadc2565d468afca10448600033b73af1ef74978.tar.gz
vdr-fadc2565d468afca10448600033b73af1ef74978.tar.bz2
Fixed a crash when closing down with remote control plugins
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/remote.c b/remote.c
index ffdfa18a..05ce6063 100644
--- a/remote.c
+++ b/remote.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remote.c 1.28 2002/09/29 12:51:26 kls Exp $
+ * $Id: remote.c 1.29 2002/10/12 15:22:08 kls Exp $
*/
#include "remote.h"
@@ -34,8 +34,7 @@ cCondVar cRemote::keyPressed;
cRemote::cRemote(const char *Name)
{
- if (Name)
- name = strdup(Name);
+ name = Name ? strdup(Name) : NULL;
Remotes.Add(this);
}