summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-02-07 16:33:57 +0000
committerharti <harti@FreeBSD.org>2005-02-07 16:33:57 +0000
commit3d0eb6600e7af2175c805360532fcb7881c84502 (patch)
treeaed13ef82845a6342b864845decc76289b6edfbd /usr.bin/make
parent15f29409bafcde8687bea33781ffe84ebc47e35a (diff)
downloadFreeBSD-src-3d0eb6600e7af2175c805360532fcb7881c84502.zip
FreeBSD-src-3d0eb6600e7af2175c805360532fcb7881c84502.tar.gz
Remove an unneeded check.
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/var.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/make/var.c b/usr.bin/make/var.c
index e1b1b71..675e847 100644
--- a/usr.bin/make/var.c
+++ b/usr.bin/make/var.c
@@ -224,7 +224,7 @@ VarFind(const char *name, GNode *ctxt, int flags)
* and substitute the short version in for 'name' if it matches one of
* them.
*/
- if (*name == '.' && isupper((unsigned char)name[1]))
+ if (*name == '.') {
switch (name[1]) {
case 'A':
if (!strcmp(name, ".ALLSRC"))
@@ -252,7 +252,10 @@ VarFind(const char *name, GNode *ctxt, int flags)
if (!strcmp(name, ".TARGET"))
name = TARGET;
break;
+ default:
+ break;
}
+ }
/*
* Note whether this is one of the specific variables we were told through
OpenPOWER on IntegriCloud