in clock_getres, check for null pointer before storing result
authorRich Felker <dalias@aerifal.cx>
Thu, 8 Aug 2019 01:35:28 +0000 (21:35 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 8 Aug 2019 01:35:28 +0000 (21:35 -0400)
commit0847902ab99065a48f9bd3729b6e676288dfd69e
treef2cfdd9ec74374828c5f3f534762eb13748b4a32
parenta108127256a188130a80d6c7762ec8820e663b7c
in clock_getres, check for null pointer before storing result

POSIX allows a null pointer, in which case the function only checks
the validity of the clock id argument.
src/time/clock_getres.c