diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2010-01-17 12:08:03 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2010-01-17 12:08:03 +0100 |
commit | a503c6ab3f1763c98db5677a59d4d07bf8299025 (patch) | |
tree | 8c041b2e26b1453151f73927cdb3dacbe10b2f50 /osdbase.c | |
parent | 61c1df70040cbb9215f9735be36cf414b039a2e6 (diff) | |
download | vdr-a503c6ab3f1763c98db5677a59d4d07bf8299025.tar.gz vdr-a503c6ab3f1763c98db5677a59d4d07bf8299025.tar.bz2 |
The "Edit timer" menu can now set the folder for the recording from a list of folders stored in "folders.conf"
Diffstat (limited to 'osdbase.c')
-rw-r--r-- | osdbase.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: osdbase.c 2.1 2009/06/01 11:54:50 kls Exp $ + * $Id: osdbase.c 2.2 2010/01/17 11:36:12 kls Exp $ */ #include "osdbase.h" @@ -41,7 +41,7 @@ cOsdItem::~cOsdItem() void cOsdItem::SetText(const char *Text, bool Copy) { free(text); - text = Copy ? strdup(Text) : (char *)Text; // text assumes ownership! + text = Copy ? strdup(Text ? Text : "") : (char *)Text; // text assumes ownership! } void cOsdItem::SetSelectable(bool Selectable) |