Commit a948fdd6 authored by Rob Pike's avatar Rob Pike

typo. this split-os building thing is frustrating.

R=rsc
OCL=24681
CL=24681
parent aba4c754
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment