Skip to content

Commit f02f893

Browse files
author
Zishan Mirza
committed
fix: return type for localtime_s implementation
1 parent 6355f38 commit f02f893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/time/linux/localtime_s.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace LIBC_NAMESPACE_DECL {
1414
// windows only, implemented in gnu/linux for compatibility reasons
1515
LLVM_LIBC_FUNCTION(int, localtime_s, (const time_t *timer, struct tm *input)) {
1616
if (timer == nullptr) {
17-
return nullptr;
17+
return -1;
1818
}
1919

2020
return time_utils::localtime_s_internal(timer, input);

0 commit comments

Comments
 (0)