From: Zbigniew Jędrzejewski-Szmek Date: Thu, 8 Mar 2018 09:06:00 +0000 (+0100) Subject: shared/bootspec: look at the correct variable X-Git-Tag: v239~532^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=790f84eb9229452d8041e828abece0e61e4cdca6;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index 7bb66f3d879..2e3611850ac 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);