Initialize all fields of struct tm used by wxDateTime::Format().
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Sep 2010 21:57:52 +0000 (21:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Sep 2010 21:57:52 +0000 (21:57 +0000)
commitba75967c9c0656ec0bcc342878cd9cdd27857ea9
tree60d36a9804ebc79b9015a3821519966fdf9a2a3d
parente436c454e17774eba4c79e0d5d9d056448d96a20
Initialize all fields of struct tm used by wxDateTime::Format().

Passing not fully initialized struct tm to strftime() results in Valgrind
errors and possible nastiness, see #12455.

Simply use memset() to set all fields of this system-dependent struct to 0
initially.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/datetimefmt.cpp