Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2024 13:58:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 280922] Change  46c599340f187db577b9212ab18022f3c7380c68 fixes one case (localtime / gmtime -> strftime('%s'), but breaks another
Message-ID:  <bug-280922-227-mqrU4yQ7P5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-280922-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-280922-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280922

--- Comment #2 from Dag-Erling Sm=C3=B8rgrav <des@FreeBSD.org> ---
Your patch makes no sense.  You assume that fields that weren't explicitly
initialized are zero, but that's frequently not the case.  The correct fix =
is
to change cpython to explicitly initialize its `struct tm` either with an
initializer or with `memset()`.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280922-227-mqrU4yQ7P5>