Pārlūkot izejas kodu

Work around -Werror=maybe-uninitialized not being very bright.

The compiler doesn't believe the loop always executes at least once,
even though the data in the first array entry doesn't satisfy the exit
condition.  So just initialize the thing to shut it up.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
Peter Jones 7 gadi atpakaļ
vecāks
revīzija
e861bb3861
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      apps/route80h.c

+ 1 - 1
apps/route80h.c

@@ -93,7 +93,7 @@ efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *systab)
 	InitializeLib(image_handle, systab);
 	EFI_PCI_IO *pciio = NULL;
 	lpcif_t lpcif;
-	EFI_STATUS rc;
+	EFI_STATUS rc = EFI_SUCCESS;
 	struct {
 		uint16_t vendor;
 		uint16_t device;