1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-15 04:55:22 +02:00

[244051] Check dups in env vars even if invalidNameChars==null

This commit is contained in:
Martin Oberhuber 2008-11-12 14:08:03 +00:00
parent cde5c0f2bc
commit 2b0e88e140

View file

@ -580,8 +580,6 @@ public class EnvironmentVariablesForm extends SystemBaseForm implements Selectio
}
// first check for invalid characters
if (invalidNameChars != null)
{
for (int i = 0; i < invalidNameChars.length() && msg == null; i++)
{
if (name.indexOf(invalidNameChars.charAt(i)) != -1)
@ -590,7 +588,7 @@ public class EnvironmentVariablesForm extends SystemBaseForm implements Selectio
}
}
}
if (msg == null) {
// next check for duplicate env var names
int itemCount = envVarTable.getItemCount();
for (int i = 0; i < itemCount; i++) {