projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e52541
)
time: don't segfault with no arguments
author
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 11 Jul 2008 15:05:51 +0000
(15:05 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 11 Jul 2008 15:05:51 +0000
(15:05 -0000)
miscutils/time.c
patch
|
blob
|
history
diff --git
a/miscutils/time.c
b/miscutils/time.c
index d8b8aa0c5255a08e07d39ed87c608d80a13bd0e7..dbc92d12ff9d128a0478165e681b68b49bdf468b 100644
(file)
--- a/
miscutils/time.c
+++ b/
miscutils/time.c
@@
-402,6
+402,7
@@
int time_main(int argc UNUSED_PARAM, 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;