Magellan Linux

Diff of /trunk/grubby/grubby.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3023 by niro, Tue Jun 27 14:39:37 2017 UTC revision 3024 by niro, Tue Jun 27 14:41:50 2017 UTC
# Line 2439  struct singleEntry *findTemplate(struct Line 2439  struct singleEntry *findTemplate(struct
2439   index = 0;   index = 0;
2440   while ((entry = findEntryByIndex(cfg, index))) {   while ((entry = findEntryByIndex(cfg, index))) {
2441   if (suitableImage(entry, prefix, skipRemoved, flags)) {   if (suitableImage(entry, prefix, skipRemoved, flags)) {
2442   int j;   int j, unmodifiedIndex;
2443   for (j = 0; j < index; j++) {  
2444     unmodifiedIndex = index;
2445    
2446     for (j = 0; j < unmodifiedIndex; j++) {
2447   entry2 = findEntryByIndex(cfg, j);   entry2 = findEntryByIndex(cfg, j);
2448   if (entry2->skip)   if (entry2->skip)
2449   index--;   index--;

Legend:
Removed from v.3023  
changed lines
  Added in v.3024