From c1b01b94ef3fae4354f08bea5db720b68443afc3 Mon Sep 17 00:00:00 2001 From: CaS Date: Mon, 17 Oct 2005 05:47:46 +0000 Subject: [PATCH] Tighter check on variable names git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21834 72102866-910b-0410-8b05-ffd578937521 --- Source/NSPathUtilities.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/NSPathUtilities.m b/Source/NSPathUtilities.m index b907f8caf..7dd4cbecf 100644 --- a/Source/NSPathUtilities.m +++ b/Source/NSPathUtilities.m @@ -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]);