[Midnightbsd-cvs] src [9307] trunk/sys/boot/common/module.c: Since we didn't break the loop, we should set i to -1 to start from the
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Mar 2 18:33:22 EST 2017
Revision: 9307
http://svnweb.midnightbsd.org/src/?rev=9307
Author: laffer1
Date: 2017-03-02 18:33:22 -0500 (Thu, 02 Mar 2017)
Log Message:
-----------
Since we didn't break the loop, we should set i to -1 to start from the
beginning.
Modified Paths:
--------------
trunk/sys/boot/common/module.c
Modified: trunk/sys/boot/common/module.c
===================================================================
--- trunk/sys/boot/common/module.c 2017-03-02 23:32:50 UTC (rev 9306)
+++ trunk/sys/boot/common/module.c 2017-03-02 23:33:22 UTC (rev 9307)
@@ -289,7 +289,8 @@
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;
}
More information about the Midnightbsd-cvs
mailing list