Terminate the new environment with a NULL pointer

svn path=/trunk/; revision=18410
This commit is contained in:
Gé van Geldorp 2005-10-12 13:00:34 +00:00
parent 76f3a6da01
commit 2d8f114871

View file

@ -178,6 +178,7 @@ char **DuplicateEnvironment(char **original_environment, int wide)
return original_environment;
}
}
*newenvptr = NULL;
return newenv;
}