mirror of
https://github.com/systemd/systemd.git
synced 2026-07-25 00:35:55 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user