From 9dded1d9015db0b91278731dfec380891ea0eb14 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Mon, 3 Dec 2018 13:50:58 -0800 Subject: 10013 bootadm: list_menu_entry() is missing else Reviewed by: Andy Fiddaman Reviewed by: Andy Stormont Approved by: Joshua M. Clulow --- usr/src/cmd/boot/bootadm/bootadm_loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/src/cmd/boot/bootadm/bootadm_loader.c b/usr/src/cmd/boot/bootadm/bootadm_loader.c index 6f96f4b053..2a2a95c99e 100644 --- a/usr/src/cmd/boot/bootadm/bootadm_loader.c +++ b/usr/src/cmd/boot/bootadm/bootadm_loader.c @@ -907,7 +907,7 @@ list_menu_entry(menu_entry_t *entry, char *setting) if (*setting == '\0') { (void) printf("Kernel: %s\n", getenv("bootfile")); - } if (strcasecmp(setting, "kernel") == 0) { + } else if (strcasecmp(setting, "kernel") == 0) { (void) printf("%s\n", getenv("bootfile")); goto done; } -- cgit v1.2.3