From ed97f07d88143ed99520ec2a0922527364d27ed8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Pinard?= Date: Thu, 21 Feb 2008 21:07:13 -0500 Subject: [PATCH] Copy subtask output to task --- src/ChangeLog | 4 ++++ src/task.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index c941fcc..2466cf4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -3,6 +3,10 @@ * Makefile.am (recode.1): Use --name calling help2man. Reported by Dan Jacobson. + * task.c (recode_perform_task): Subtask output pointers were + not copied into task output. + Reported by Enrik Berkhan and Frederic Gobry. + 2008-02-16 François Pinard * ansi2knr.c: Modified by Automake 1.10. diff --git a/src/task.c b/src/task.c index d23d4fb..b4c4917 100644 --- a/src/task.c +++ b/src/task.c @@ -1204,6 +1204,8 @@ recode_perform_task (RECODE_TASK task) else success = transform_mere_copy (subtask); + task->output = subtask->output; + if (subtask->input.name && *subtask->input.name) fclose (subtask->input.file); if (subtask->output.name && *subtask->output.name) -- 2.40.0