commit | 94884eb4866815e63293a6261f974601ce95b1dd | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Fri Jul 11 15:05:51 2008 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Fri Jul 11 15:05:51 2008 +0000 |
tree | 313ae026e637d666a9ad53b98f265878bb89796d | |
parent | 0e52541917a80a4c5aee9d32fcc81cf9967f2aed [diff] [blame] |
time: don't segfault with no arguments
diff --git a/miscutils/time.c b/miscutils/time.c index d8b8aa0..dbc92d1 100644 --- a/miscutils/time.c +++ b/miscutils/time.c
@@ -402,6 +402,7 @@ const char *output_format = default_format; int opt; + opt_complementary = "-1"; /* at least one arg */ /* "+": stop on first non-option */ opt = getopt32(argv, "+vp"); argv += optind;