Skip to content

Commit 4fd32be

Browse files
committed
url: ensure minimum components for formatting
1 parent fd50810 commit 4fd32be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/net.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,9 @@ void git_net_url_swap(git_net_url *a, git_net_url *b)
401401

402402
int git_net_url_fmt(git_buf *buf, git_net_url *url)
403403
{
404-
GIT_ASSERT_ARG(in->scheme);
405-
GIT_ASSERT_ARG(in->host);
404+
GIT_ASSERT_ARG(url);
405+
GIT_ASSERT_ARG(url->scheme);
406+
GIT_ASSERT_ARG(url->host);
406407

407408
git_buf_puts(buf, url->scheme);
408409
git_buf_puts(buf, "://");

0 commit comments

Comments
 (0)