summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svdrp.c b/svdrp.c
index 1d2593a2..7f91479f 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 3.2 2013/10/10 12:18:12 kls Exp $
+ * $Id: svdrp.c 3.3 2013/10/14 09:49:38 kls Exp $
*/
#include "svdrp.h"
@@ -1570,7 +1570,7 @@ void cSVDRP::CmdRENR(const char *Option)
option = skipspace(++option);
if (*option) {
cString oldName = recording->Name();
- if (recording->ChangeName(option))
+ if ((recording = Recordings.GetByName(recording->FileName())) != NULL && recording->ChangeName(option))
Reply(250, "Recording \"%s\" renamed to \"%s\"", *oldName, recording->Name());
else
Reply(554, "Error while renaming recording \"%s\" to \"%s\"!", *oldName, option);