We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LIBC_CRASH_ON_NULLPTR
1 parent 77d29e2 commit e26d5feCopy full SHA for e26d5fe
libc/src/time/localtime_r.cpp
@@ -15,6 +15,7 @@ namespace LIBC_NAMESPACE_DECL {
15
LLVM_LIBC_FUNCTION(struct tm *, localtime_r,
16
(const time_t *timer, struct tm *buf)) {
17
LIBC_CRASH_ON_NULLPTR(timer);
18
+ LIBC_CRASH_ON_NULLPTR(buf);
19
20
return time_utils::localtime_internal(timer, buf);
21
}
0 commit comments