In timegm() initialize tm_isdst to 0 like tzcode does.

This commit is contained in:
Todd C. Miller
2022-07-01 14:23:28 -06:00
parent fd0c5566ac
commit 42c6d9fb50

View File

@@ -88,6 +88,7 @@ sudo_timegm(struct tm *tm)
{
time_t result;
tm->tm_isdst = 0;
result = mktime(tm);
if (result != -1)
result += get_gmtoff(&result);