← Commit list

aa1854a8ff

Viktor Szakats
Viktor Szakats
2026-02-20
SUCCESS Duration: 318s

Subject

tests/server/sockfilt: check for NULL `tv` to silence clang-tidy

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

tests/server/sockfilt.c+4 -2
@@ -717,8 +717,10 @@ static int select_ws(int nfds, fd_set *readfds, fd_set *writefds,
data[nws].wsasock = wsasock;
data[nws].wsaevent = wsaevent;
data[nfd].wsastate = 0;
- tv->tv_sec = 0;
- tv->tv_usec = 0;
+ if(tv) {
+ tv->tv_sec = 0;
+ tv->tv_usec = 0;
+ }
/* check if the socket is already ready */
if(select(fd + 1, &readsock, &writesock, &exceptsock, tv) == 1) {
logmsg("[select_ws] socket %d is ready", fd);