Tighter check on variable names

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21834 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-10-17 05:47:46 +00:00
parent 19e0c2d9e0
commit 21d5f44af9

View file

@ -973,9 +973,7 @@ ParseConfigurationFile(NSString *fileName, NSMutableDictionary *dict)
key = [NSString stringWithCharacters: dst length: dpos - dst];
for (tmp = dst; tmp < dpos; tmp++)
{
if (*tmp != '_'
&& (*tmp < 'A' || *tmp > 'Z')
&& (*tmp < '0' || *tmp > '9'))
if (*tmp != '_' && (*tmp < 'A' || *tmp > 'Z'))
{
fprintf(stderr, "Bad variable name '%s' in config file '%s'\n",
[key UTF8String], [fileName UTF8String]);