https://src.bluestatic.org
/
armadillo.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29aa4a6
)
Don't return a null slice from server.ListPath, return an empty one
author
Robert Sesek <rsesek@bluestatic.org>
Tue, 3 Apr 2012 13:51:40 +0000
(09:51 -0400)
committer
Robert Sesek <rsesek@bluestatic.org>
Tue, 3 Apr 2012 13:52:03 +0000
(09:52 -0400)
server/paths.go
patch
|
blob
|
history
diff --git
a/server/paths.go
b/server/paths.go
index 682f1ddbcdce3136989957fffbce95f83b057de9..c8371dda0b2d194115bd2b038f43804f168c9de4 100644
(file)
--- a/
server/paths.go
+++ b/
server/paths.go
@@
-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() {