aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorGordon Bergling <gbe@FreeBSD.org>2022-09-16 18:38:58 +0000
committerGordon Bergling <gbe@FreeBSD.org>2022-09-24 08:01:18 +0000
commit306cfa499a248567269b303f81a32010470c3369 (patch)
tree1351ae5cbf4d95f32ea75617c5419fdf70ffe17d /lib/libc/net
parente267c40181bf71927bd9df8ee6f3019e8ffd8743 (diff)
ctime.3: Add a note about a possible return value of localtime(3)
The localtime(3) function returns a NULL pointer, if the passed in-time translates to a year that will not fit in an integer type. It is stricly recommended to check the return value to avoid garage output. Reported by: mckusick Reviewed by: mckusick, imp, rpokala Differential Revision: https://reviews.freebsd.org/D36515 (cherry picked from commit 30cfb3c8ee3d3fc79644541207c81d20c72176ce)
Diffstat (limited to 'lib/libc/net')
0 files changed, 0 insertions, 0 deletions