From 58aeb149bbb754e7ec7cf4b8bdfbf17230353b7d Mon Sep 17 00:00:00 2001 From: "Richard (Rikki) Andrew Cattermole" Date: Sun, 25 Jan 2026 04:39:15 +1300 Subject: [PATCH] Fix potential null check error in Socket.select --- std/socket.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/socket.d b/std/socket.d index 99ac97ac1e3..8e408ad862a 100644 --- a/std/socket.d +++ b/std/socket.d @@ -3510,7 +3510,7 @@ public: if (checkError) checkError.setMinCapacity(n); } - int result = .select(n, fr, fw, fe, &timeout.ctimeval); + int result = .select(n, fr, fw, fe, timeout !is null ? &timeout.ctimeval : null); version (Windows) {