From 1d443b6b4b2a7666fcb8dd151a476d895a0bd9c8 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 67586ea30..bb4d5e54f 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; -- 2.34.1