Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Sep 22, 2023
1 parent f713a3d commit e809087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Utilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ class Buffer {
init(capacity: Int) {
self.capacity = capacity
self.buffer = UnsafeMutablePointer<UInt8>.allocate(capacity: capacity)
buffer.initialize(to: 0)
buffer.initialize(repeating: 0, count: capacity)
}

deinit {
Expand Down

0 comments on commit e809087

Please sign in to comment.