Merge pull request #1481 from jasonKercher/vet_fix

fix `-vet` for `filepath/match.odin`
This commit is contained in:
Jeroen van Rijn
2022-02-08 15:27:51 +01:00
committed by GitHub

View File

@@ -227,11 +227,10 @@ glob :: proc(pattern: string, allocator := context.allocator) -> (matches: []str
return m[:], .None
}
temp_buf: [8]byte
dir, file := split(pattern)
volume_len := 0
when ODIN_OS == "windows" {
temp_buf: [8]byte
volume_len, dir = clean_glob_path_windows(dir, temp_buf[:])
} else {
dir = clean_glob_path(dir)