Skip to content

Commit

Permalink
Swift 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
basvankuijck committed Oct 18, 2021
1 parent b1091bf commit a0c25bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog Francium

## v1.1.1 (18-10-2021)
- Swift 5.5

## v1.1.0 (05-04-2019)
- Swift 5.0

Expand Down
4 changes: 3 additions & 1 deletion Sources/Francium/IO/Dir.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ public class Dir: IOObject, CustomStringConvertible {

public func glob(_ pattern: String) -> [File] {
let pattern = absolutePath + "/" + pattern
guard let cPattern = strdup(pattern) else {
return []
}
var gt = glob_t()
let cPattern = strdup(pattern)
defer {
globfree(&gt)
free(cPattern)
Expand Down

0 comments on commit a0c25bc

Please sign in to comment.