aboutsummaryrefslogtreecommitdiff
path: root/libiberty/pex-common.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2006-03-24 22:39:45 +0000
committerJim Blandy <jimb@gcc.gnu.org>2006-03-24 22:39:45 +0000
commit58df1c413d4514747ce8478caf0bfdc48711e551 (patch)
treed5ab994ac7d82666ba79ff051d8e864ea22d2729 /libiberty/pex-common.c
parent6426e8aa4150f780b0dfc4bdb244764db8a01e08 (diff)
downloadgcc-58df1c413d4514747ce8478caf0bfdc48711e551.zip
gcc-58df1c413d4514747ce8478caf0bfdc48711e551.tar.gz
gcc-58df1c413d4514747ce8478caf0bfdc48711e551.tar.bz2
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
Diffstat (limited to 'libiberty/pex-common.c')
-rw-r--r--libiberty/pex-common.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/libiberty/pex-common.c b/libiberty/pex-common.c
index b2ca6e0..db842ae 100644
--- a/libiberty/pex-common.c
+++ b/libiberty/pex-common.c
@@ -211,17 +211,10 @@ pex_run (struct pex_obj *obj, int flags, const char *executable,
outname_allocated = 0;
}
- if (!outname_allocated)
- {
- obj->next_input_name = outname;
- obj->next_input_name_allocated = 0;
- }
- else
- {
- obj->next_input_name = outname;
- outname_allocated = 0;
- obj->next_input_name_allocated = 1;
- }
+ /* Hand off ownership of outname to the next stage. */
+ obj->next_input_name = outname;
+ obj->next_input_name_allocated = outname_allocated;
+ outname_allocated = 0;
}
else
{