Skip to content

Commit

Permalink
fix segmentation violation #14
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed Oct 5, 2022
1 parent 174cfb3 commit bfd06f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions filehandling.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ func searchFilesInPath(path string, callback func(os.FileInfo, string)) {

// collect all files
err := filepath.Walk(path, func(path string, f os.FileInfo, err error) error {
if err != nil {
return err
}

filename := f.Name()

// skip directories
Expand Down

0 comments on commit bfd06f8

Please sign in to comment.