Prevent iteration past end() for empty SysPath.
This commit is contained in:
parent
651219e6e4
commit
0b6d047bb3
@ -146,8 +146,10 @@ namespace cling {
|
||||
initialized = true;
|
||||
}
|
||||
std::vector<std::string>::const_iterator it = SysPaths.begin();
|
||||
while ((++it) != SysPaths.end()) {
|
||||
Paths.push_back((*it).c_str());
|
||||
if (it != SysPaths.end()) {
|
||||
while ((++it) != SysPaths.end()) {
|
||||
Paths.push_back((*it).c_str());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user