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

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