SwiftWebSocket icon indicating copy to clipboard operation
SwiftWebSocket copied to clipboard

Initialization of 'UnsafePointer<UInt8>' results in a dangling pointer

Open tethridge opened this issue 3 years ago • 0 comments

Line 440 of WebSocket.swift causes a warning in Xcode. The warning is "Initialization of 'UnsafePointer<UInt8>' results in a dangling pointer".

strm.next_in = UnsafePointer<UInt8>(inflateEnd)

It is just a warning, but it would be nice to update it with the preferred syntax to eliminate the warning.

tethridge avatar Mar 08 '22 14:03 tethridge