From: David Henkel-Wallace Date: Fri, 19 Apr 1991 19:40:55 +0000 (+0000) Subject: fix a smallie but nasttie. X-Git-Tag: gdb-4_18-branchpoint~24485 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ef2fb7e05518ce181d1005e8652d5f5bba123e2;p=thirdparty%2Fbinutils-gdb.git fix a smallie but nasttie. --- diff --git a/binutils/ar.c b/binutils/ar.c index c5478741fa5..ab01510d381 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;