Skip to content

Commit 9b2848d

Browse files
authored
Always populate utsname (#2391)
1 parent 61043a3 commit 9b2848d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/NIOPosixTests/DatagramChannelTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,8 @@ extension System {
14831483
#if os(Linux)
14841484
internal static let systemInfo: SystemInfo = {
14851485
var info = utsname()
1486-
assert(CNIOLinux_system_info(&info) == 0)
1486+
let rc = CNIOLinux_system_info(&info)
1487+
assert(rc == 0)
14871488
return SystemInfo(utsname: info)
14881489
}()
14891490

0 commit comments

Comments
 (0)