2370 |
} else { |
} else { |
2371 |
char * title; |
char * title; |
2372 |
line = getLineByType(LT_MENUENTRY, entry->lines); |
line = getLineByType(LT_MENUENTRY, entry->lines); |
2373 |
title = grub2ExtractTitle(line); |
if (!line) { |
2374 |
if (title) |
title = grub2ExtractTitle(line); |
2375 |
printf("title=%s\n", title); |
if (title) |
2376 |
|
printf("title=%s\n", title); |
2377 |
|
} |
2378 |
} |
} |
2379 |
|
|
2380 |
for (j = 0, line = entry->lines; line; line = line->next) { |
for (j = 0, line = entry->lines; line; line = line->next) { |
3325 |
|
|
3326 |
/* if title is supplied, the entry's title must match it. */ |
/* if title is supplied, the entry's title must match it. */ |
3327 |
if (title) { |
if (title) { |
3328 |
|
char *linetitle; |
3329 |
|
|
3330 |
line = getLineByType(LT_TITLE|LT_MENUENTRY, entry->lines); |
line = getLineByType(LT_TITLE|LT_MENUENTRY, entry->lines); |
3331 |
char *linetitle = extractTitle(line); |
if (!line) |
3332 |
|
continue; |
3333 |
|
|
3334 |
|
linetitle = extractTitle(line); |
3335 |
if (!linetitle) |
if (!linetitle) |
3336 |
continue; |
continue; |
3337 |
if (strcmp(title, linetitle)) { |
if (strcmp(title, linetitle)) { |
3379 |
|
|
3380 |
/* if title is supplied, the entry's title must match it. */ |
/* if title is supplied, the entry's title must match it. */ |
3381 |
if (title) { |
if (title) { |
3382 |
|
char *linetitle; |
3383 |
|
|
3384 |
line = getLineByType(LT_TITLE|LT_MENUENTRY, entry->lines); |
line = getLineByType(LT_TITLE|LT_MENUENTRY, entry->lines); |
3385 |
char *linetitle = extractTitle(line); |
if (!line) |
3386 |
|
continue; |
3387 |
|
|
3388 |
|
linetitle = extractTitle(line); |
3389 |
if (!linetitle) |
if (!linetitle) |
3390 |
continue; |
continue; |
3391 |
if (strcmp(title, linetitle)) { |
if (strcmp(title, linetitle)) { |