aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/date.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index 2aecbaac2..2c61aa646 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -79,6 +79,8 @@ int date_main(int argc ATTRIBUTE_UNUSED, char **argv)
79 if (!(opt & (DATE_OPT_SET | DATE_OPT_DATE))) { 79 if (!(opt & (DATE_OPT_SET | DATE_OPT_DATE))) {
80 opt |= DATE_OPT_SET; 80 opt |= DATE_OPT_SET;
81 date_str = argv[0]; /* can be NULL */ 81 date_str = argv[0]; /* can be NULL */
82 } else if (argv[0]) {
83 bb_show_usage();
82 } 84 }
83 85
84 /* Now we have parsed all the information except the date format 86 /* Now we have parsed all the information except the date format