1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-07 09:05:24 +02:00

PR 50846 Clone the properties class.

This commit is contained in:
Alain Magloire 2004-01-29 15:28:58 +00:00
parent fad7ba011f
commit ee65c0abba
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2004-01-29 Alain Magloire
PR 50846 from Alex Chapiro.
Clone the return properties class so to not be affected
by external changes.
* utils/org/eclipse/cdt/utils/spawner/EnvironmentReader.java
2004-01-21 Anthony Green
PR 50397.

View file

@ -19,7 +19,7 @@ public class EnvironmentReader {
public static Properties getEnvVars() {
if (null != envVars)
return envVars;
return (Properties)envVars.clone();
String OS = System.getProperty("os.name").toLowerCase();
Process p = null;
@ -74,7 +74,7 @@ public class EnvironmentReader {
}
}
rawVars.trimToSize();
return envVars;
return (Properties)envVars.clone();
}
public static String getEnvVar(String key) {