From 790f84eb9229452d8041e828abece0e61e4cdca6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 8 Mar 2018 10:06:00 +0100 Subject: [PATCH] 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. --- src/shared/bootspec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index 7bb66f3d87..2e3611850a 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -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); -- 2.25.1