Browse Source

Merge pull request #1481 from jasonKercher/vet_fix

fix `-vet` for `filepath/match.odin`
Jeroen van Rijn 3 years ago
parent
commit
546faab0cb
1 changed files with 1 additions and 2 deletions
  1. 1 2
      core/path/filepath/match.odin

+ 1 - 2
core/path/filepath/match.odin

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