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
This commit is contained in:
Andrey V. Elsukov 2013-04-21 09:10:35 +00:00
parent 4885497dc1
commit 584a9cf8bf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249719

View File

@ -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;
}