X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=symbol.c;fp=symbol.c;h=f8d8424ff99de0886df08bd03cd459b85cf94d68;hp=f10c55ad85b2a723425b1f6c479ee4baff32be20;hb=f6e6a55c4cdaf0dffa0897792dc5926c7b173a23;hpb=bb94015a443a0aebaa93ee62f9f2738fa3a96784 diff --git a/symbol.c b/symbol.c index f10c55a..f8d8424 100644 --- a/symbol.c +++ b/symbol.c @@ -151,13 +151,14 @@ SYM * lookup(char * name, int type, int envno) if (symbol->stype == type // Type, envno and name must match && symbol->senv == envno && *name == *symbol->sname // Fast check for first character - && !strcmp(name, symbol->sname)) + && !strcmp(name, symbol->sname)) // More expensive check break; symbol = symbol->snext; } - return symbol; // Return NULL or matching symbol + // Return NULL or matching symbol + return symbol; }