Micro-optimization.

This commit is contained in:
Richard Heck 2015-02-24 13:43:33 -05:00
parent b627b8701b
commit fc9e6326b9

View File

@ -763,7 +763,9 @@ void cleanDuplicateEnvVars()
}
// Loop over the list of duplicated variables
for (std::set<std::string>::iterator dupe = dupes.begin(); dupe != dupes.end(); ++dupe) {
std::set<std::string>::iterator dupe = dupes.begin();
std::set<std::string>::iterator const dend = dupes.end();
for (; dupe != dend; ++dupe) {
const char *name = (*dupe).c_str();
char *val = getenv(name);
if (val != NULL) {