diff --git a/backend_local.go b/backend_local.go index ade2f86..55aa353 100644 --- a/backend_local.go +++ b/backend_local.go @@ -71,7 +71,7 @@ func (l *LocalFileBackend) ListPictures(box string) ([]*Picture, error) { return nil, err } - var pictures []*Picture + pictures := make([]*Picture, 0) for _, file := range files { if !file.IsDir() { pictures = append(pictures, l.createPictureInfo(path.Join(box, file.Name()), file.Name(), file))