← Commit list

29758a6143

Viktor Szakats
Viktor Szakats
2026-02-22
SUCCESS Duration: 319s

Subject

tests/server: silence clang-tidy warning

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/util.c+8 -1
@@ -659,7 +659,14 @@ int bind_unix_socket(curl_socket_t sock, const char *unix_socket,
int error;
char errbuf[STRERROR_LEN];
int rc;
- size_t len = strlen(unix_socket);
+ size_t len;
+
+ if(!unix_socket) {
+ logmsg("Unix socket domain path not specified.");
+ return -1;
+ }
+
+ len = strlen(unix_socket);
memset(sau, 0, sizeof(struct sockaddr_un));
sau->sun_family = AF_UNIX;