bug fix
authorceriel <none@none>
Fri, 27 Mar 1987 13:34:46 +0000 (13:34 +0000)
committerceriel <none@none>
Fri, 27 Mar 1987 13:34:46 +0000 (13:34 +0000)
mach/proto/top/top.c

index 67586ea..bb4d5e5 100644 (file)
@@ -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;