aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Henkel-Wallace <gumby@cygnus>1991-04-19 19:40:55 +0000
committerDavid Henkel-Wallace <gumby@cygnus>1991-04-19 19:40:55 +0000
commit2ef2fb7e05518ce181d1005e8652d5f5bba123e2 (patch)
tree9ecf6a7fe7fafc11a16c64ca686cb05ac17e27a5
parent931004e4578333db0429abc7219282dbc0e10076 (diff)
downloadgdb-2ef2fb7e05518ce181d1005e8652d5f5bba123e2.zip
gdb-2ef2fb7e05518ce181d1005e8652d5f5bba123e2.tar.gz
gdb-2ef2fb7e05518ce181d1005e8652d5f5bba123e2.tar.bz2
fix a smallie but nasttie.
-rw-r--r--binutils/ar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index c547874..ab01510 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -839,8 +839,6 @@ replace_members(files_to_move)
current = *current_ptr;
if (!strcmp(normalize(*files_to_move), current->filename)) {
- /* snip out this entry from the chain */
- *current_ptr = current->next;
if (newer_only) {
struct stat fsbuf,
asbuf;
@@ -864,6 +862,8 @@ replace_members(files_to_move)
goto next_file;
}
+ /* snip out this entry from the chain */
+ *current_ptr = current->next;
after_bfd = get_pos_bfd(&inarch->next, pos_end);
temp = *after_bfd;