shutdown: Fix r327476 by adding init
Initialize maybe_today. While here sort. PR: 32411 Additionally reported by: rgrimes, ian
This commit is contained in:
parent
8befcf7be1
commit
7d3df1907a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user