1
0
mirror of https://github.com/golang/go synced 2024-11-13 17:10:21 -07:00

can finally close this TODO - 6l was broken

R=r
DELTA=2  (0 added, 2 deleted, 0 changed)
OCL=23993
CL=23995
This commit is contained in:
Russ Cox 2009-01-30 17:14:39 -08:00
parent 47e27758db
commit 6fdb18f900

View File

@ -1189,8 +1189,6 @@ fileelem(Sym **fp, uchar *cp, char *buf, int n)
bp = buf;
end = buf+n-1;
for(i = 1; j = (cp[i]<<8)|cp[i+1]; i+=2){
if(j >= fmaxi) // TODO(rsc): should not happen, but does!
break;
c = fp[j]->name;
if(bp != buf && bp[-1] != '/' && bp < end)
*bp++ = '/';