- Initialize list pointers
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@949 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
542fe8056b
commit
64f7162e17
|
@ -366,6 +366,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;
|
||||||
|
|
Loading…
Reference in New Issue