From 4360edf5db42a77ef46deb106df65ac60db3dabf Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 4 Jul 2003 13:33:48 +0000 Subject: Fixed broken arithmetic expression parser. Reminded by: bde In memory of: alane --- usr.bin/make/cond.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/make/cond.c b/usr.bin/make/cond.c index 6f82ecb..8eab811 100644 --- a/usr.bin/make/cond.c +++ b/usr.bin/make/cond.c @@ -688,16 +688,13 @@ do_string_compare: } } else { char *c = CondCvtArg(rhs, &right); - if (*c != '\0' && !isspace((unsigned char) *c)) + if (c == rhs) goto do_string_compare; if (rhs == condExpr) { /* * Skip over the right-hand side */ - while(!isspace((unsigned char) *condExpr) && - (*condExpr != '\0')) { - condExpr++; - } + condExpr = c; } } -- cgit v1.1