Commit ea7c807a373a15c69c710375d65e4ba3777c09af

Edward Thomson 2020-04-05T17:18:46

net: use GIT_ASSERT

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/net.c b/src/net.c
index ac1bc42..0705dd3 100644
--- a/src/net.c
+++ b/src/net.c
@@ -281,7 +281,8 @@ int git_net_url_apply_redirect(
 	git_net_url tmp = GIT_NET_URL_INIT;
 	int error = 0;
 
-	assert(url && redirect_location);
+	GIT_ASSERT(url);
+	GIT_ASSERT(redirect_location);
 
 	if (redirect_location[0] == '/') {
 		git__free(url->path);