Skip to content

Commit bfd06f8

Browse files
committed
fix segmentation violation #14
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent 174cfb3 commit bfd06f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

filehandling.go

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ func searchFilesInPath(path string, callback func(os.FileInfo, string)) {
5454

5555
// collect all files
5656
err := filepath.Walk(path, func(path string, f os.FileInfo, err error) error {
57+
if err != nil {
58+
return err
59+
}
60+
5761
filename := f.Name()
5862

5963
// skip directories

0 commit comments

Comments
 (0)