Diff of /trunk/grubby/grubby.c
Parent Directory | Revision Log | Patch
revision 1726 by niro, Sat Feb 18 00:53:14 2012 UTC | revision 1727 by niro, Sat Feb 18 00:57:49 2012 UTC | |
---|---|---|
# | Line 874 static struct grubConfig * readConfig(co | Line 874 static struct grubConfig * readConfig(co |
874 | cfg->secondaryIndent = strdup(line->indent); | cfg->secondaryIndent = strdup(line->indent); |
875 | } | } |
876 | ||
877 | if (isEntryStart(line, cfi)) { | if (isEntryStart(line, cfi) || (cfg->entries && !sawEntry)) { |
878 | sawEntry = 1; | sawEntry = 1; |
879 | if (!entry) { | if (!entry) { |
880 | cfg->entries = malloc(sizeof(*entry)); | cfg->entries = malloc(sizeof(*entry)); |
|