Blame SOURCES/0033-grub2ExtractTitle-and-extractTitle-don-t-do-the-same.patch

56d25d
From aa0091e098aa8f4cccd66484c13684b3617af322 Mon Sep 17 00:00:00 2001
56d25d
From: Peter Jones <pjones@redhat.com>
56d25d
Date: Wed, 15 Apr 2015 15:36:00 -0400
56d25d
Subject: [PATCH 33/41] grub2ExtractTitle and extractTitle don't do the same
56d25d
 thing.
56d25d
56d25d
So don't try to use grub2ExtractTitle in extractTitle, which actually
56d25d
already knows how to do that thing right.
56d25d
56d25d
Resolves: rhbz#1211887
56d25d
56d25d
Signed-off-by: Peter Jones <pjones@redhat.com>
56d25d
---
56d25d
 grubby.c | 2 --
56d25d
 1 file changed, 2 deletions(-)
56d25d
56d25d
diff --git a/grubby.c b/grubby.c
56d25d
index e4358ad..5ee20e3 100644
56d25d
--- a/grubby.c
56d25d
+++ b/grubby.c
56d25d
@@ -829,8 +829,6 @@ static int isEntryStart(struct singleLine * line,
56d25d
 static char * extractTitle(struct grubConfig *cfg, struct singleLine * line) {
56d25d
     /* bracketed title... let's extract it */
56d25d
     char * title = NULL;
56d25d
-    if (cfg->cfi == &grub2ConfigType)
56d25d
-	return grub2ExtractTitle(line);
56d25d
     if (line->type == LT_TITLE) {
56d25d
 	char *tmp = line->elements[cfg->cfi->titlePosition].item;
56d25d
 	if (cfg->cfi->titleBracketed) {
56d25d
-- 
56d25d
2.4.3
56d25d