Skip to content

Commit

Permalink
Merge pull request #1438 from GRIFFINCollaboration/create-pull-reques…
Browse files Browse the repository at this point in the history
…t/patch

[MegaLinter] Apply linters automatic fixes
  • Loading branch information
VinzenzBildstein authored Jul 10, 2024
2 parents 2cab3ed + f7ca952 commit 50d5c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/TGRSIint/FullPath.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ std::string full_path(const std::string& path)
std::array<char, PATH_MAX + 1> buff;
char* success = realpath(path.c_str(), buff.data());
if(success != nullptr) {
return std::string(buff.data()); // this ensures that we stop at the string limiting \0 (whereas buff.begin() to buff.end() would use all PATH_MAX+1 characters of the array)
return std::string(buff.data()); // this ensures that we stop at the string limiting \0 (whereas buff.begin() to buff.end() would use all PATH_MAX+1 characters of the array)
}
// TODO: Give some sort of error message.
return "";
Expand Down

0 comments on commit 50d5c15

Please sign in to comment.