diff options
author | ae <ae@FreeBSD.org> | 2013-04-21 09:10:35 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2013-04-21 09:10:35 +0000 |
commit | 77bba67eefea6c232b9fda0d8ee5148bf5980a98 (patch) | |
tree | bba43e6d1e28ecc0c3303e21c751927042bbfd19 /sys/boot | |
parent | d3e64b0dcc9d06a6d981586ed378ba4ad72ca6c1 (diff) | |
download | FreeBSD-src-77bba67eefea6c232b9fda0d8ee5148bf5980a98.zip FreeBSD-src-77bba67eefea6c232b9fda0d8ee5148bf5980a98.tar.gz |
Since we didn't break the loop, we should set i to -1 to start from the
beginning.
Submitted by: Steven Hartland
MFC after: 1 week
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/common/module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/common/module.c b/sys/boot/common/module.c index 5808587..e450fbd 100644 --- a/sys/boot/common/module.c +++ b/sys/boot/common/module.c @@ -289,7 +289,8 @@ file_load(char *filename, vm_offset_t dest, struct preloaded_file **result) break; } else if (last_file_format == i && i != 0) { /* Restart from the beginning */ - last_file_format = i = 0; + i = -1; + last_file_format = 0; fp = NULL; continue; } |