From 6096f2556c2bb40e2a1857cf0c4d6f4abfab4f0a Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 27 Mar 1987 13:34:46 +0000 Subject: [PATCH] bug fix --- mach/proto/top/top.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mach/proto/top/top.c b/mach/proto/top/top.c index 67586ea3..bb4d5e54 100644 --- a/mach/proto/top/top.c +++ b/mach/proto/top/top.c @@ -289,7 +289,8 @@ bool opmatch(t,s) was_instantiated = (var[vno].vstate == INSTANTIATED); strcpy(buf,s); if ( (l=lstrip(buf,t->lctxt)) != NULLSTRING && rstrip(l,t->rctxt)) { - return vno == 0 || (unify(l,&var[vno]) && + return (vno == 0 && *l == '\0') || + (vno != 0 && unify(l,&var[vno]) && (was_instantiated || tok_chk(vno))); } return FALSE;