From 6d9b81564e2dc1ec40e46659ee5b2b810f0f618f Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 19 Dec 2009 03:14:43 +0000 Subject: Fix bug: pm_system* always crashes or fails to handle output git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1057 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/libsystem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libsystem.c') diff --git a/lib/libsystem.c b/lib/libsystem.c index f0a1996a..4581aa66 100644 --- a/lib/libsystem.c +++ b/lib/libsystem.c @@ -135,7 +135,8 @@ spawnProcessor(const char * const progName, descriptor of the other end of that pipe, from which Caller can suck the program's Standard Output. -----------------------------------------------------------------------------*/ - bool const pipeStdout = !stdoutFdP; + bool const pipeStdout = !!stdoutFdP; + int stdoutpipe[2]; pid_t rc; -- cgit 1.4.1