aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/shutdown/shutdown.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c
index 622b99fa2fa3..67a433b8edde 100644
--- a/sbin/shutdown/shutdown.c
+++ b/sbin/shutdown/shutdown.c
@@ -431,7 +431,7 @@ getoffset(char *timearg)
struct tm *lt;
char *p;
time_t now;
- int this_year, maybe_today;
+ int maybe_today, this_year;
char *timeunit;
(void)time(&now);
@@ -482,6 +482,7 @@ getoffset(char *timearg)
unsetenv("TZ"); /* OUR timezone */
lt = localtime(&now); /* current time val */
+ maybe_today = 1;
switch(strlen(timearg)) {
case 10: