[cfe-commits] [patch][libcxx] Zero initialize a struct tm in __time_get_storage to appease valgrind
Andrew C. Morrow
andrew.c.morrow at gmail.com
Thu Aug 2 11:00:23 PDT 2012
Hi -
The attached patch updates the initialization of the 'struct tm' in
__time_get_storage<char> to match the initialization behavior in
__time_get_storage<wchar>. Without the initialization, valgrind
reports errors in the subsequent calls to strftime_l.
Thanks,
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libcxx.locale.tm.initializer.patch
Type: application/octet-stream
Size: 313 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120802/34e86db2/attachment.obj>
More information about the cfe-commits
mailing list