Skip to content

Commit 440db1e

Browse files
authored
Fix potential null check error in Socket.select (#10939)
1 parent f839179 commit 440db1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/socket.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3510,7 +3510,7 @@ public:
35103510
if (checkError) checkError.setMinCapacity(n);
35113511
}
35123512

3513-
int result = .select(n, fr, fw, fe, &timeout.ctimeval);
3513+
int result = .select(n, fr, fw, fe, timeout !is null ? &timeout.ctimeval : null);
35143514

35153515
version (Windows)
35163516
{

0 commit comments

Comments
 (0)