diff options
author | Mantas Mikulėnas <grawity@gmail.com> | 2016-08-30 17:50:19 +0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-08-30 16:50:19 +0200 |
commit | a908cf0a126a332a209670ad5c769efa231fd002 (patch) | |
tree | e87df61f1d48d62174fc7143488fe60e368f2d1b | |
parent | 43f1f9a61d108ab82c189bd854b9a276aebea6ec (diff) |
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 f939cff71577 "bootctl: various coding style
updates".
-rw-r--r-- | src/boot/bootctl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index a7cdf92ed2..ee6d7eb864 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -439,9 +439,12 @@ static int status_variables(void) { for (j = 0; j < n_order; j++) if (options[i] == order[j]) - continue; + goto next_option; print_efi_option(options[i], false); + + next_option: + continue; } return 0; |