Commit af414a58 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Fix a nil-pointer dereference in AutoUnionFs.

parent 21ed6eb9
......@@ -177,7 +177,7 @@ func (me *AutoUnionFs) getRoots(path string) []string {
}
func (me *AutoUnionFs) visit(path string, fi os.FileInfo, err error) error {
if fi.IsDir() {
if fi != nil && fi.IsDir() {
roots := me.getRoots(path)
if roots != nil {
me.addAutomaticFs(roots)
......
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