diff options
author | DJ Delorie <dj@redhat.com> | 2006-03-24 23:02:57 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2006-03-24 23:02:57 +0000 |
commit | 57b126a363a42d36e44165a5ba675ced00a4dc61 (patch) | |
tree | 4679e7521a61b82f26dce08a0ae4051aac206e96 /libiberty/pex-common.c | |
parent | 3de90d0ba47072063112b2c065e10a514732ddb3 (diff) | |
download | gdb-57b126a363a42d36e44165a5ba675ced00a4dc61.zip gdb-57b126a363a42d36e44165a5ba675ced00a4dc61.tar.gz gdb-57b126a363a42d36e44165a5ba675ced00a4dc61.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/pex-common.c')
-rw-r--r-- | libiberty/pex-common.c | 15 |
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 { |