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

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