Don't return a null slice from server.ListPath, return an empty one
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 3 Apr 2012 13:51:40 +0000 (09:51 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 3 Apr 2012 13:52:03 +0000 (09:52 -0400)
server/paths.go

index 682f1ddbcdce3136989957fffbce95f83b057de9..c8371dda0b2d194115bd2b038f43804f168c9de4 100644 (file)
@@ -57,6 +57,7 @@ func ListPath(the_path string) (files []string, err error) {
                return nil, read_err
        }
 
+       files = make([]string, 0)
        for _, info := range fileinfos {
                name := info.Name()
                if info.IsDir() {