summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-05-15 11:46:30 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-05-15 11:46:30 +0200
commit464552dd91a170f5e6c69650a6df1af871a2ad1a (patch)
treee074ebe09c11608a422e2be39577d4ef3d257359
parent914b04c1d23fe94c22de79cc34c62b7a26bac22c (diff)
downloadvdr-464552dd91a170f5e6c69650a6df1af871a2ad1a.tar.gz
vdr-464552dd91a170f5e6c69650a6df1af871a2ad1a.tar.bz2
Fixed cString's operator=(const char *String) in case the given string is the same as the existing one
-rw-r--r--CONTRIBUTORS4
-rw-r--r--HISTORY5
-rw-r--r--config.h10
-rw-r--r--tools.c4
4 files changed, 17 insertions, 6 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index f6ba82c7..baef5ecb 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -2697,3 +2697,7 @@ Sergiu Dotenco <sergiu.dotenco@googlemail.com>
Mika Laitio <lamikr@pilppa.org>
for reporting a case where cRecordingInfo::Read(FILE *f) was called with a NULL pointer
+
+Dirk Leber <dirk.leber@reel-multimedia.com>
+ for fixing cString's operator=(const char *String) in case the given string is the
+ same as the existing one
diff --git a/HISTORY b/HISTORY
index c4e22fd8..3dff3b5a 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6606,3 +6606,8 @@ Video Disk Recorder Revision History
- Added handling of "ANSI/SCTE 57" descriptors (thanks too Rolf Ahrenberg).
- Avoiding an unecessary call to Recordings.ResetResume() (thanks to Reinhard
Nissl).
+
+2011-04-29: Version 1.7.19
+
+- Fixed cString's operator=(const char *String) in case the given string is the
+ same as the existing one (thanks to Dirk Leber).
diff --git a/config.h b/config.h
index e4ac2f2a..0d76e939 100644
--- a/config.h
+++ b/config.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.h 2.30 2011/03/13 12:02:31 kls Exp $
+ * $Id: config.h 2.31 2011/05/15 11:46:30 kls Exp $
*/
#ifndef __CONFIG_H
@@ -22,13 +22,13 @@
// VDR's own version number:
-#define VDRVERSION "1.7.18"
-#define VDRVERSNUM 10718 // Version * 10000 + Major * 100 + Minor
+#define VDRVERSION "1.7.19"
+#define VDRVERSNUM 10719 // Version * 10000 + Major * 100 + Minor
// The plugin API's version number:
-#define APIVERSION "1.7.18"
-#define APIVERSNUM 10718 // Version * 10000 + Major * 100 + Minor
+#define APIVERSION "1.7.19"
+#define APIVERSNUM 10719 // Version * 10000 + Major * 100 + Minor
// When loading plugins, VDR searches them by their APIVERSION, which
// may be smaller than VDRVERSION in case there have been no changes to
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;