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.
1 parent 10970ce commit 44b5378Copy full SHA for 44b5378
Sources/_TestingInternals/ExecutablePath.cpp
@@ -24,7 +24,7 @@ static constinit std::atomic<const char *> earlyCWD { nullptr };
24
/// path (which can occur when manually invoking the test executable.)
25
__attribute__((__constructor__(101), __used__))
26
static void captureEarlyCWD(void) {
27
- if (auto cwd = getcwd(nil, 0)) {
+ if (auto cwd = getcwd(nullptr, 0)) {
28
earlyCWD.store(cwd);
29
}
30
0 commit comments