]> granicus.if.org Git - check/commit
Only create datetime string if localtime_r succeeded
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 6 Jan 2014 04:41:46 +0000 (04:41 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 6 Jan 2014 04:41:46 +0000 (04:41 +0000)
commitff56ce4d95c1c62d8bcad3b4cad97ab624861c32
treeecc6c3a8e9a415c3b65ea9aeed6d49d50dc81b80
parente5d4f3f06e97afa4fc6a13645c3ea1379ee365ff
Only create datetime string if localtime_r succeeded

On MSVC localtime_r (which redirects to localtime in libcompat)
can fail. The reason is not yet known. Instead of printing
garbage in this case, simply do not print the date time.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1040 64e312b2-a51f-0410-8e61-82d0ca0eb02a
src/check_log.c