summaryrefslogtreecommitdiff
path: root/sys/boot
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2013-04-29 10:20:46 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2013-04-29 10:20:46 +0000
commit5ca20c165ef8fd45a939ee4a1d9740f81f6ddcd1 (patch)
tree0f9c7a4e571b4ae55e361c0f2ad031b0ca5ddef7 /sys/boot
parentd4ffb2dc2e0fb72977773d181100df05068ddd17 (diff)
Notes
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/common/module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/common/module.c b/sys/boot/common/module.c
index 96c0a58d5e1e..5e25822115f0 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;
}