EnvironmentalProtectionAgency::save ()
{
/* do this to avoid lots of calls to _NSGetEnviron() on OS X */
+
char** the_environ = environ;
e.clear ();
-<<<<<<< .mine
- for (size_t i = 0; the_environ[i]; ++i) {
-=======
if (!_envname.empty()) {
/* fetch environment from named environment variable, rather than "environ"
*/
->>>>>>> .r8570
-<<<<<<< .mine
- string estring = the_environ[i];
- string::size_type equal = estring.find_first_of ('=');
-=======
const char* estr = getenv (_envname.c_str());
->>>>>>> .r8570
if (!estr) {
return;
/* fetch environment from "environ"
*/
- for (size_t i = 0; environ[i]; ++i) {
+ for (size_t i = 0; the_environ[i]; ++i) {
- string estring = environ[i];
+ string estring = the_environ[i];
string::size_type equal = estring.find_first_of ('=');
if (equal == string::npos) {