We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a13d4c commit a3d2922Copy full SHA for a3d2922
src/libgit2/transports/httpclient.c
@@ -837,6 +837,11 @@ GIT_INLINE(int) server_setup_from_url(
837
git_http_server *server,
838
git_net_url *url)
839
{
840
+ GIT_ASSERT_ARG(url);
841
+ GIT_ASSERT_ARG(url->scheme);
842
+ GIT_ASSERT_ARG(url->host);
843
+ GIT_ASSERT_ARG(url->port);
844
+
845
if (!server->url.scheme || strcmp(server->url.scheme, url->scheme) ||
846
!server->url.host || strcmp(server->url.host, url->host) ||
847
!server->url.port || strcmp(server->url.port, url->port)) {
0 commit comments