projects
/
busybox4maemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed time command segfault with no arguments
[busybox4maemo]
/
miscutils
/
time.c
diff --git
a/miscutils/time.c
b/miscutils/time.c
index
ed43859
..
395fcb5
100644
(file)
--- a/
miscutils/time.c
+++ b/
miscutils/time.c
@@
-402,6
+402,7
@@
int time_main(int argc ATTRIBUTE_UNUSED, char **argv)
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;