Blame SOURCES/0013-Work-around-Werror-maybe-uninitialized-not-being-ver.patch

67650e
From e861bb3861cca6c6d7b4d42fa915e9e9fa3dc9fc Mon Sep 17 00:00:00 2001
aad209
From: Peter Jones <pjones@redhat.com>
67650e
Date: Tue, 13 Mar 2018 15:20:23 -0400
67650e
Subject: [PATCH 13/25] Work around -Werror=maybe-uninitialized not being very
aad209
 bright.
aad209
aad209
The compiler doesn't believe the loop always executes at least once,
aad209
even though the data in the first array entry doesn't satisfy the exit
aad209
condition.  So just initialize the thing to shut it up.
aad209
aad209
Signed-off-by: Peter Jones <pjones@redhat.com>
67650e
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
aad209
---
aad209
 apps/route80h.c | 2 +-
aad209
 1 file changed, 1 insertion(+), 1 deletion(-)
aad209
aad209
diff --git a/apps/route80h.c b/apps/route80h.c
67650e
index e1f62f06824..5272dd3cd44 100644
aad209
--- a/apps/route80h.c
aad209
+++ b/apps/route80h.c
67650e
@@ -93,7 +93,7 @@ efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *systab)
aad209
 	InitializeLib(image_handle, systab);
aad209
 	EFI_PCI_IO *pciio = NULL;
aad209
 	lpcif_t lpcif;
aad209
-	EFI_STATUS rc;
aad209
+	EFI_STATUS rc = EFI_SUCCESS;
aad209
 	struct {
aad209
 		uint16_t vendor;
aad209
 		uint16_t device;
aad209
-- 
67650e
2.15.0
aad209