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.
2 parents e2d227f + 0bfda95 commit 35ac0efCopy full SHA for 35ac0ef
src/util/file_util.cpp
@@ -54,7 +54,7 @@ std::string get_current_working_directory()
54
errno=0;
55
char *wd=realpath(".", nullptr);
56
57
- if(wd == nullptr || errno != 0)
+ if(wd == nullptr)
58
throw system_exceptiont(
59
std::string("realpath failed: ") + std::strerror(errno));
60
src/util/tempdir.cpp
@@ -93,7 +93,7 @@ std::string get_temporary_directory(const std::string &name_template)
93
errno = 0;
94
char *wd = realpath(td, nullptr);
95
96
97
98
99
0 commit comments