fix for elfboot.

This commit is contained in:
Ronald G. Minnich 2003-10-20 19:25:22 +00:00
parent 2d10d6bb26
commit 6d569e09e2

View file

@ -367,6 +367,7 @@ static int build_elf_segment_list(
struct segment *ptr; struct segment *ptr;
int i; int i;
memset(head, 0, sizeof(*head)); memset(head, 0, sizeof(*head));
head->phdr_next = head->phdr_prev = head;
head->next = head->prev = head; head->next = head->prev = head;
for(i = 0; i < headers; i++) { for(i = 0; i < headers; i++) {
struct segment *new; struct segment *new;