svn commit: r316628 - head/sys/boot/efi/boot1
Alexander Kabaev
kan at FreeBSD.org
Fri Apr 7 22:58:36 UTC 2017
Author: kan
Date: Fri Apr 7 22:58:34 2017
New Revision: 316628
URL: https://svnweb.freebsd.org/changeset/base/316628
Log:
Silence GCC warning by initializing the local variable.
GCC 6.3 is unable to trace all code paths that lead to
this variable being left uninitialized and correlate that
to function return values.
Modified:
head/sys/boot/efi/boot1/boot1.c
Modified: head/sys/boot/efi/boot1/boot1.c
==============================================================================
--- head/sys/boot/efi/boot1/boot1.c Fri Apr 7 22:58:31 2017 (r316627)
+++ head/sys/boot/efi/boot1/boot1.c Fri Apr 7 22:58:34 2017 (r316628)
@@ -529,6 +529,7 @@ probe_handle_status(EFI_HANDLE h, EFI_DE
EFI_STATUS status;
BOOLEAN preferred;
+ preferred = FALSE;
status = probe_handle(h, imgpath, &preferred);
DPRINTF("probe: ");
More information about the svn-src-head
mailing list