mirror of
https://github.com/sheumann/hush.git
synced 2025-01-18 07:31:34 +00:00
time: don't segfault with no arguments
This commit is contained in:
parent
0e52541917
commit
94884eb486
@ -402,6 +402,7 @@ int time_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
const char *output_format = default_format;
|
const char *output_format = default_format;
|
||||||
int opt;
|
int opt;
|
||||||
|
|
||||||
|
opt_complementary = "-1"; /* at least one arg */
|
||||||
/* "+": stop on first non-option */
|
/* "+": stop on first non-option */
|
||||||
opt = getopt32(argv, "+vp");
|
opt = getopt32(argv, "+vp");
|
||||||
argv += optind;
|
argv += optind;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user