]> git.saurik.com Git - wxWidgets.git/commitdiff
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)
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


No differences found