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

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