diff options
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r-- | src/journal/journalctl.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index cb252eb0b8..b347dfa187 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -371,18 +371,7 @@ static int parse_argv(int argc, char *argv[]) { case 'b': arg_boot = true; - - if (optarg) - arg_boot_descriptor = optarg; - else if (optind < argc) { - int boot; - - if (argv[optind][0] != '-' || - safe_atoi(argv[optind], &boot) >= 0) { - arg_boot_descriptor = argv[optind]; - optind++; - } - } + arg_boot_descriptor = optarg; break; |