From bd8da9d1244529797958d9592b8f13e3190da972 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Tue, 14 Mar 2017 08:30:36 +1100 Subject: [PATCH] Properly initialise variable to fix detection of non-Arch kernel versions --- refind/mystrings.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/refind/mystrings.c b/refind/mystrings.c index 539aba2..eeb6560 100644 --- a/refind/mystrings.c +++ b/refind/mystrings.c @@ -241,12 +241,14 @@ BOOLEAN LimitStringLength(CHAR16 *TheString, UINTN Limit) { // As a special case for Arch Linux the strings "linux" and "linux-lts" // are considered to be digits. CHAR16 *FindNumbers(IN CHAR16 *InString) { - UINTN i, StartOfElement = 0, EndOfElement = 0, CopyLength; + UINTN i, StartOfElement, EndOfElement = 0, CopyLength; CHAR16 *Found = NULL; if (InString == NULL) return NULL; + StartOfElement = StrLen(InString); + // Find "linux-lts" or "linux" Found = MyStrStr(InString, L"linux-lts"); if (Found != NULL) { -- 2.39.2