mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 14:55:37 +03:00
bootctl: properly skip duplicate entries (#4048)
'continue' is a fancy no-op here – it only skips through the inner loop,
not the outer one, so entries already in BootOrder get printed twice.
This partially reverts f939cff715
"bootctl: various coding style
updates".
This commit is contained in:
parent
43f1f9a61d
commit
a908cf0a12
@ -439,9 +439,12 @@ static int status_variables(void) {
|
|||||||
|
|
||||||
for (j = 0; j < n_order; j++)
|
for (j = 0; j < n_order; j++)
|
||||||
if (options[i] == order[j])
|
if (options[i] == order[j])
|
||||||
continue;
|
goto next_option;
|
||||||
|
|
||||||
print_efi_option(options[i], false);
|
print_efi_option(options[i], false);
|
||||||
|
|
||||||
|
next_option:
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user