mirror of
https://github.com/golang/go
synced 2024-11-26 05:57:58 -07:00
typo. this split-os building thing is frustrating.
R=rsc OCL=24681 CL=24681
This commit is contained in:
parent
aba4c75408
commit
a948fdd626
@ -107,7 +107,7 @@ func Readdir(fd *FD, count int) (dirs []Dir, err *os.Error) {
|
||||
dirs = dirs[0:len(dirs)+1];
|
||||
filename := string(dirent.Name[0:dirent.Namlen]);
|
||||
dirp, err := Stat(dirname + filename);
|
||||
if dir == nil || err != nil {
|
||||
if dirp == nil || err != nil {
|
||||
dirs[len(dirs)-1].Name = filename; // rest will be zeroed out
|
||||
} else {
|
||||
dirs[len(dirs)-1] = *dirp;
|
||||
|
Loading…
Reference in New Issue
Block a user