Blame SOURCES/0070-Initialize-variable-for-ppc-environment-1285601.patch

903092
From 7f4bde0a1c7889f088c704d441323fefd12acffc Mon Sep 17 00:00:00 2001
903092
From: Robert Marshall <rmarshall@redhat.com>
903092
Date: Mon, 27 Feb 2017 15:59:53 -0500
903092
Subject: [PATCH] Initialize variable for ppc environment (#1285601)
903092
903092
Building on PPC does not default the value of an uninitialized integer
903092
to zero which caused test failures.
903092
903092
Related: rhbz#1285601
903092
---
903092
 grubby.c | 2 ++
903092
 1 file changed, 2 insertions(+)
903092
903092
diff --git a/grubby.c b/grubby.c
903092
index 9544212..7cd5c90 100644
903092
--- a/grubby.c
903092
+++ b/grubby.c
903092
@@ -2259,6 +2259,8 @@ void setDefaultImage(struct grubConfig *config, int isAddingBootEntry,
903092
 	/* check validity of existing default or first-entry-found
903092
 	   selection */
903092
 	if (defaultKernelPath) {
903092
+                /* we must initialize this */
903092
+                firstKernelEntryIndex = 0;
903092
 		/* user requested first-entry-found */
903092
 		if (!findEntryByPath(config, defaultKernelPath,
903092
 				     prefix, &firstKernelEntryIndex)) {
903092
-- 
903092
2.9.3
903092