summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-08-08 14:21:17 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-08-08 14:21:17 +0200
commitc896678b0c32782b48540fcf4c48e063545c4365 (patch)
treeafbff991f6334e064647ce421346e451caa9a9e8 /menu.c
parent30da608c70f2a7ff23bfdf49c158630ed57d0bf2 (diff)
downloadvdr-c896678b0c32782b48540fcf4c48e063545c4365.tar.gz
vdr-c896678b0c32782b48540fcf4c48e063545c4365.tar.bz2
Fixed a possible NULL pointer assignment in cMenuText::SetText()
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 95d72536..d297d04e 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.309 2004/06/13 20:26:51 kls Exp $
+ * $Id: menu.c 1.310 2004/08/08 14:19:37 kls Exp $
*/
#include "menu.h"
@@ -514,7 +514,7 @@ cMenuText::~cMenuText()
void cMenuText::SetText(const char *Text)
{
free(text);
- text = strdup(Text);
+ text = Text ? strdup(Text) : NULL;
}
void cMenuText::Display(void)