summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools.c b/tools.c
index a493529d..6a98bf69 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 2.13 2011/03/20 15:20:00 kls Exp $
+ * $Id: tools.c 2.14 2011/04/29 14:51:14 kls Exp $
*/
#include "tools.h"
@@ -906,6 +906,8 @@ cString &cString::operator=(const cString &String)
cString &cString::operator=(const char *String)
{
+ if (s == String)
+ return *this;
free(s);
s = String ? strdup(String) : NULL;
return *this;