* Makefile.in (objdump.o): Deleted special rule.
[deliverable/binutils-gdb.git] / binutils / ar.c
index b968c8936e2f4e6673e2af3ca0c56ad7b9165b36..19491717b2645b3494514accc048ef6fe44ec695 100644 (file)
@@ -883,18 +883,21 @@ move_members (files_to_move)
            {
              /* Move this file to the end of the list - first cut from
                 where it is.  */
+             bfd *link;
              *current_ptr_ptr = current_ptr->next;
 
              /* Now glue to end */
              after_bfd = get_pos_bfd (&inarch->next, pos_end);
+             link = *after_bfd;
              *after_bfd = current_ptr;
-             current_ptr->next = (bfd *) NULL;
+             current_ptr->next = link;
 
              if (verbose)
                printf ("m - %s\n", *files_to_move);
 
              goto next_file;
            }
+
          current_ptr_ptr = &((*current_ptr_ptr)->next);
        }
       fprintf (stderr, "%s: no entry %s in archive %s!\n",
This page took 0.023604 seconds and 4 git commands to generate.