--- trunk/grubby/grubby.c 2017/06/27 14:42:27 3025 +++ trunk/grubby/grubby.c 2017/06/27 14:43:04 3026 @@ -2569,6 +2569,8 @@ /* 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)) {