shared/bootspec: look at the correct variable
The result of this parsing isn't used for anything, so this didn't cause a functional difference, but a spurious warning was emitted.
This commit is contained in:
parent
fc17f194de
commit
790f84eb92
|
@ -202,11 +202,11 @@ int boot_loader_read_conf(const char *path, BootConfig *config) {
|
|||
r = free_and_strdup(&config->timeout, p);
|
||||
else if (streq(field, "editor"))
|
||||
r = free_and_strdup(&config->editor, p);
|
||||
else if (streq(buf, "auto-entries"))
|
||||
else if (streq(field, "auto-entries"))
|
||||
r = free_and_strdup(&config->auto_entries, p);
|
||||
else if (streq(buf, "auto-firmware"))
|
||||
else if (streq(field, "auto-firmware"))
|
||||
r = free_and_strdup(&config->auto_firmware, p);
|
||||
else if (streq(buf, "console-mode"))
|
||||
else if (streq(field, "console-mode"))
|
||||
r = free_and_strdup(&config->console_mode, p);
|
||||
else {
|
||||
log_notice("%s:%u: Unknown line \"%s\"", path, line, field);
|
||||
|
|
Loading…
Reference in a new issue