Commit 58df1c41 by Jim Blandy Committed by Jim Blandy

pex-common.c (pex_run): Simplify output name handling.

2006-03-24  Jim Blandy  <jimb@codesourcery.com>

	* pex-common.c (pex_run): Simplify output name handling.

From-SVN: r112363
parent 6426e8aa
2006-03-24 Jim Blandy <jimb@codesourcery.com>
* pex-common.c (pex_run): Simplify output name handling.
2006-03-12 Jim Blandy <jimb@red-bean.com> 2006-03-12 Jim Blandy <jimb@red-bean.com>
* pex-common.h (struct pex_obj): Doc fixes. * pex-common.h (struct pex_obj): Doc fixes.
......
...@@ -211,17 +211,10 @@ pex_run (struct pex_obj *obj, int flags, const char *executable, ...@@ -211,17 +211,10 @@ pex_run (struct pex_obj *obj, int flags, const char *executable,
outname_allocated = 0; outname_allocated = 0;
} }
if (!outname_allocated) /* Hand off ownership of outname to the next stage. */
{
obj->next_input_name = outname;
obj->next_input_name_allocated = 0;
}
else
{
obj->next_input_name = outname; obj->next_input_name = outname;
obj->next_input_name_allocated = outname_allocated;
outname_allocated = 0; outname_allocated = 0;
obj->next_input_name_allocated = 1;
}
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment