[libcompat] reentrant.h: Adjusted the localtime_r() implementation a bit.
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Sat, 15 Aug 2015 22:52:29 +0000 (18:52 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Sat, 15 Aug 2015 22:52:29 +0000 (18:52 -0400)
commit001c2ac491c85e784b82f40a9a463c0d98e6259e
treead6d8cb23f80a2c3b2a018b8c2729c1fa9f7e43b
parent60445b891374b9e57fe5a5be9ed03980f4790ae9
[libcompat] reentrant.h: Adjusted the localtime_r() implementation a bit.

- Use struct assignment instead of memcpy().

- Return NULL if _Tm is NULL. This is an unlikely condition, so we
  don't check for _Tm == NULL before calling localtime().
src/libcompat/reentrant.h