Blame SOURCES/0025-Get-the-error-checking-on-getLineByType-return-right.patch

903092
From d4fc18c1a9b9b3e8f8e73afa5c82c938555f5c4d Mon Sep 17 00:00:00 2001
903092
From: Peter Jones <pjones@redhat.com>
903092
Date: Thu, 16 Oct 2014 14:07:01 -0400
903092
Subject: [PATCH 25/41] Get the error checking on getLineByType() return
903092
 /right/.
903092
903092
Signed-off-by: Peter Jones <pjones@redhat.com>
903092
---
903092
 grubby.c | 2 +-
903092
 1 file changed, 1 insertion(+), 1 deletion(-)
903092
903092
diff --git a/grubby.c b/grubby.c
903092
index febc1ad..82a0f15 100644
903092
--- a/grubby.c
903092
+++ b/grubby.c
903092
@@ -2363,7 +2363,7 @@ void displayEntry(struct singleEntry * entry, const char * prefix, int index) {
903092
     } else {
903092
 	char * title;
903092
 	line = getLineByType(LT_MENUENTRY, entry->lines);
903092
-	if (!line) {
903092
+	if (line) {
903092
 	    title = grub2ExtractTitle(line);
903092
 	    if (title)
903092
 		printf("title=%s\n", title);
903092
-- 
903092
2.4.3
903092