← Commit list

947775a613

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

Subject

libtests: drop two redundant `memset()`s

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/libtest/cli_h2_pausing.c+1 -1
@@ -161,7 +161,7 @@ static CURLcode test_cli_h2_pausing(const char *URL)
result = (CURLcode)1;
goto cleanup;
}
- memset(&resolve, 0, sizeof(resolve));
+
curl_msnprintf(resolve_buf, sizeof(resolve_buf) - 1, "%s:%s:127.0.0.1",
host, port);
resolve = curl_slist_append(resolve, resolve_buf);
tests/libtest/cli_upload_pausing.c+1 -1
@@ -155,7 +155,7 @@ static CURLcode test_cli_upload_pausing(const char *URL)
result = (CURLcode)1;
goto cleanup;
}
- memset(&resolve, 0, sizeof(resolve));
+
curl_msnprintf(resolve_buf, sizeof(resolve_buf) - 1, "%s:%s:127.0.0.1",
host, port);
resolve = curl_slist_append(resolve, resolve_buf);