Author: ae Date: Sun Apr 21 09:10:35 2013 New Revision: 249719 URL: http://svnweb.freebsd.org/changeset/base/249719
Log: 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 Modified: head/sys/boot/common/module.c Modified: head/sys/boot/common/module.c ============================================================================== --- head/sys/boot/common/module.c Sun Apr 21 08:35:38 2013 (r249718) +++ head/sys/boot/common/module.c Sun Apr 21 09:10:35 2013 (r249719) @@ -289,7 +289,8 @@ file_load(char *filename, vm_offset_t de 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; } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"