Skip to content

Commit

Permalink
Remove non-printing characters from CANTERA_DATA
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Aug 8, 2022
1 parent 8e17679 commit 05896d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base/application.cpp
Expand Up @@ -257,7 +257,7 @@ void Application::setDefaultDirectories()
string s = string(getenv("CANTERA_DATA"));
size_t start = 0;
size_t end = s.find(pathsep);
while(end != npos) {
while (end != npos) {
inputDirs.push_back(s.substr(start, end-start));
start = end + 1;
end = s.find(pathsep, start);
Expand Down Expand Up @@ -297,7 +297,7 @@ void Application::setDefaultDirectories()
// build process (unix), and points to the directory specified by the
// 'prefix' option to 'configure', or else to /usr/local/cantera.
#ifdef CANTERA_DATA
string datadir = string(CANTERA_DATA);
string datadir = stripnonprint(string(CANTERA_DATA));
inputDirs.push_back(datadir);
#endif
}
Expand Down

0 comments on commit 05896d2

Please sign in to comment.