1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-12-08 01:28:05 +00:00
This commit is contained in:
Mathieu Favreau
2025-09-29 15:38:46 +00:00
parent eabaaf3a1a
commit 84000aaf83

View File

@@ -97,7 +97,7 @@ std::string get_extension(const std::string &path)
size_t slash_pos = path.find_last_of("/\\"); // handle directories
size_t dot_pos = path.find_last_of('.');
// No dot or dot is in the directory part no extension
// No dot or dot is in the directory part, no extension
if (dot_pos == std::string::npos || (slash_pos != std::string::npos && dot_pos < slash_pos))
{
return ""; // no extension