From: François Pinard Date: Fri, 22 Feb 2008 02:07:13 +0000 (-0500) Subject: Copy subtask output to task X-Git-Tag: v3.7-beta1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed97f07d88143ed99520ec2a0922527364d27ed8;p=recode Copy subtask output to task --- 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)