From b95b85fee4a7c26bfbc2890ac3ff00cef5fa0388 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 29 Dec 2013 17:22:10 +0100 Subject: [PATCH] Deleted a superfluous assignment in cPipe::Open() --- CONTRIBUTORS | 1 + HISTORY | 1 + thread.c | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 2319ac92..2a6da72c 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2036,6 +2036,7 @@ Ville Skytt for fixing some spellings in positioner.h and Doxyfile for changing '%a' to the POSIX compliant '%m' in all scanf() calls for reporting a possible NULL pointer dereference in cCiSession::SendData() + for reporting a superfluous assignment in cPipe::Open() Steffen Beyer for fixing setting the colored button help after deleting a recording in case the next diff --git a/HISTORY b/HISTORY index 2cd54297..89dffaab 100644 --- a/HISTORY +++ b/HISTORY @@ -8099,3 +8099,4 @@ Video Disk Recorder Revision History that can be freely assigned to any device access to the TS data stream. - Added a check to avoid a possible NULL pointer dereference in cCiSession::SendData() (reported by Ville Skyttä). +- Deleted a superfluous assignment in cPipe::Open() (reported by Ville Skyttä). diff --git a/thread.c b/thread.c index 17e55b88..4245f32e 100644 --- a/thread.c +++ b/thread.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: thread.c 3.1 2013/04/10 15:37:32 kls Exp $ + * $Id: thread.c 3.2 2013/12/29 17:21:53 kls Exp $ */ #include "thread.h" @@ -494,7 +494,6 @@ bool cPipe::Open(const char *Command, const char *Mode) else { // child process int iofd = STDOUT_FILENO; if (strcmp(Mode, "w") == 0) { - mode = "r"; iopipe = 1; iofd = STDIN_FILENO; }