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

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