Commit fd50810a by Edward Thomson

url: ensure minimum components for formatting

parent 002b2ffe
...@@ -401,6 +401,9 @@ void git_net_url_swap(git_net_url *a, git_net_url *b) ...@@ -401,6 +401,9 @@ void git_net_url_swap(git_net_url *a, git_net_url *b)
int git_net_url_fmt(git_buf *buf, git_net_url *url) int git_net_url_fmt(git_buf *buf, git_net_url *url)
{ {
GIT_ASSERT_ARG(in->scheme);
GIT_ASSERT_ARG(in->host);
git_buf_puts(buf, url->scheme); git_buf_puts(buf, url->scheme);
git_buf_puts(buf, "://"); git_buf_puts(buf, "://");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment