mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
19e0c2d9e0
commit
21d5f44af9
1 changed files with 1 additions and 3 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue