svn commit: trunk/busybox/miscutils
vda at busybox.net
vda at busybox.net
Fri Jul 11 08:05:53 PDT 2008
Author: vda
Date: 2008-07-11 08:05:51 -0700 (Fri, 11 Jul 2008)
New Revision: 22783
Log:
time: don't segfault with no arguments
Modified:
trunk/busybox/miscutils/time.c
Changeset:
Modified: trunk/busybox/miscutils/time.c
===================================================================
--- trunk/busybox/miscutils/time.c 2008-07-11 13:57:08 UTC (rev 22782)
+++ trunk/busybox/miscutils/time.c 2008-07-11 15:05:51 UTC (rev 22783)
@@ -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;
More information about the busybox-cvs
mailing list