X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fsystemctl.c;h=2b34798d060b35fb3e4531bb9ffcabe32076dbc5;hb=6b5ad000aba61a5312b5c3fac7dd85a0d33816af;hp=e517031ceac0d5af15d65e5838e119014888c776;hpb=5dc50792ac1bc627bf9b50d259b4e7546b3f8d86;p=elogind.git diff --git a/src/systemctl.c b/src/systemctl.c index e517031ce..2b34798d0 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -4233,11 +4233,13 @@ static int shutdown_parse_argv(int argc, char *argv[]) { } } - if (argc > optind) + if (argc > optind) { if ((r = parse_time_spec(argv[optind], &arg_when)) < 0) { log_error("Failed to parse time specification: %s", argv[optind]); return r; } + } else + arg_when = USEC_PER_MINUTE; /* We skip the time argument */ if (argc > optind + 1)