curl-curl/tests/server
Viktor Szakats aa1854a8ff
tests/server/sockfilt: check for NULL tv to silence clang-tidy
A NULL dereference cannot happen with existing use of this code.

linux-mingw, CM clang-tidy:
```
/home/runner/work/curl/curl/tests/server/sockfilt.c:720:24: error: Access
 to field 'tv_sec' results in a dereference of a null pointer (loaded from
 variable 'tv') [clang-analyzer-core.NullDereference,-warnings-as-errors]
  720 |             tv->tv_sec = 0;
      |             ~~         ^
```
Ref: https://github.com/curl/curl/actions/runs/22191200093/job/64179197235?pr=20631#step:10:283

Cherry-picked from #20631

Closes #20639
2026-02-20 12:08:52 +01:00
..
.checksrc build: tidy up and dedupe strdup functions 2026-02-03 14:02:30 +01:00
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt localtime: detect thread-safe alternatives and use them 2025-12-16 14:30:06 +01:00
dnsd.c tidy-up: move literals to right-side of if expressions (where missing) 2026-02-07 16:41:51 +01:00
first.c build: use more const 2026-02-02 12:32:49 +01:00
first.h build: tidy up and dedupe strdup functions 2026-02-03 14:02:30 +01:00
getpart.c build: use more const 2026-02-02 12:32:49 +01:00
Makefile.am localtime: detect thread-safe alternatives and use them 2025-12-16 14:30:06 +01:00
Makefile.inc curlx: curlx_strcopy() instead of strcpy() 2025-12-22 23:01:05 +01:00
mqttd.c build: tidy up and simplify setmode() detection and use 2026-02-08 15:47:47 +01:00
resolve.c build: use more const 2026-02-02 12:32:49 +01:00
rtspd.c rtspd: fix to check realloc() result 2026-02-19 12:38:49 +01:00
sockfilt.c tests/server/sockfilt: check for NULL tv to silence clang-tidy 2026-02-20 12:08:52 +01:00
socksd.c build: tidy up and simplify setmode() detection and use 2026-02-08 15:47:47 +01:00
sws.c sws: prevent "connection monitor" to say disconnect twice 2026-02-07 22:16:53 +01:00
tftpd.c clang-tidy: check readability-redundant-control-flow 2026-02-19 12:44:52 +01:00
util.c tidy-up: move literals to right-side of if expressions (where missing) 2026-02-07 16:41:51 +01:00