- Initialize list pointers

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@949 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Eric Biederman 2003-07-12 01:38:35 +00:00
parent 542fe8056b
commit 64f7162e17
1 changed files with 1 additions and 0 deletions

View File

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