1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Deleted a superfluous assignment in cPipe::Open()

This commit is contained in:
Klaus Schmidinger 2013-12-29 17:22:10 +01:00
parent 63ee17701a
commit b95b85fee4
3 changed files with 3 additions and 2 deletions

View File

@ -2036,6 +2036,7 @@ Ville Skytt
for fixing some spellings in positioner.h and Doxyfile for fixing some spellings in positioner.h and Doxyfile
for changing '%a' to the POSIX compliant '%m' in all scanf() calls 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 possible NULL pointer dereference in cCiSession::SendData()
for reporting a superfluous assignment in cPipe::Open()
Steffen Beyer <cpunk@reactor.de> Steffen Beyer <cpunk@reactor.de>
for fixing setting the colored button help after deleting a recording in case the next for fixing setting the colored button help after deleting a recording in case the next

View File

@ -8099,3 +8099,4 @@ Video Disk Recorder Revision History
that can be freely assigned to any device access to the TS data stream. 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() - Added a check to avoid a possible NULL pointer dereference in cCiSession::SendData()
(reported by Ville Skyttä). (reported by Ville Skyttä).
- Deleted a superfluous assignment in cPipe::Open() (reported by Ville Skyttä).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "thread.h"
@ -494,7 +494,6 @@ bool cPipe::Open(const char *Command, const char *Mode)
else { // child process else { // child process
int iofd = STDOUT_FILENO; int iofd = STDOUT_FILENO;
if (strcmp(Mode, "w") == 0) { if (strcmp(Mode, "w") == 0) {
mode = "r";
iopipe = 1; iopipe = 1;
iofd = STDIN_FILENO; iofd = STDIN_FILENO;
} }