]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Add missing continue statements
authorJan Janssen <medhefgo@web.de>
Thu, 14 Apr 2022 11:34:07 +0000 (13:34 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 14 Apr 2022 17:48:51 +0000 (19:48 +0200)
Fortunately, this was not causing any issues as it will just try
the other option branches unsuccessfuly before going to the next
config line.

src/boot/efi/boot.c

index 747a0e0bbe766c26118ceee46ff384335bcd73ec..4181545b0a7457b1be32a8f703369de8ac2b8ba7 100644 (file)
@@ -1202,6 +1202,7 @@ static void config_defaults_load_from_file(Config *config, CHAR8 *content) {
                         err = parse_boolean(value, &config->beep);
                         if (EFI_ERROR(err))
                                 log_error_stall(L"Error parsing 'beep' config option: %a", value);
+                        continue;
                 }
 
                 if (strcmpa((CHAR8 *)"reboot-for-bitlocker", key) == 0) {
@@ -1224,7 +1225,6 @@ static void config_defaults_load_from_file(Config *config, CHAR8 *content) {
                                 s = xstra_to_str(value);
                                 config->console_mode = MIN(Atoi(s), (UINTN)CONSOLE_MODE_RANGE_MAX);
                         }
-
                         continue;
                 }
 
@@ -1246,6 +1246,7 @@ static void config_defaults_load_from_file(Config *config, CHAR8 *content) {
 
                                 config->random_seed_mode = on ? RANDOM_SEED_ALWAYS : RANDOM_SEED_OFF;
                         }
+                        continue;
                 }
         }
 }