Skip to content

Commit 44b5378

Browse files
committed
Fix OpenBSD-only typo (nil instead of nullptr)
1 parent 10970ce commit 44b5378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/_TestingInternals/ExecutablePath.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static constinit std::atomic<const char *> earlyCWD { nullptr };
2424
/// path (which can occur when manually invoking the test executable.)
2525
__attribute__((__constructor__(101), __used__))
2626
static void captureEarlyCWD(void) {
27-
if (auto cwd = getcwd(nil, 0)) {
27+
if (auto cwd = getcwd(nullptr, 0)) {
2828
earlyCWD.store(cwd);
2929
}
3030
}

0 commit comments

Comments
 (0)