Skip to content

Commit

Permalink
Initialize variable for ppc environment (#1285601)
Browse files Browse the repository at this point in the history
Building on PPC does not default the value of an uninitialized integer
to zero which caused test failures.

Related: rhbz#1285601
  • Loading branch information
kellinm committed Feb 27, 2017
1 parent 47d150b commit d9b5acc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grubby.c
Original file line number Diff line number Diff line change
Expand Up @@ -2566,6 +2566,8 @@ void setDefaultImage(struct grubConfig *config, int isAddingBootEntry,
/* check validity of existing default or first-entry-found
selection */
if (defaultKernelPath) {
/* we must initialize this */
firstKernelEntryIndex = 0;
/* user requested first-entry-found */
if (!findEntryByPath(config, defaultKernelPath,
prefix, &firstKernelEntryIndex)) {
Expand Down

0 comments on commit d9b5acc

Please sign in to comment.