Commit 4dbec0a83c320fcd126d9d2014fae24906ce415d

Stefan Sperling 2020-08-27T10:46:17

actually make use of an intermediate variable in cmd_clone() found by tracey's scan-build

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index c344b32..2b4d757 100644
--- a/got/got.c
+++ b/got/got.c
@@ -1115,7 +1115,7 @@ cmd_clone(int argc, char *argv[])
 		usage_clone();
 
 	error = got_fetch_parse_uri(&proto, &host, &port, &server_path,
-	    &repo_name, argv[0]);
+	    &repo_name, uri);
 	if (error)
 		goto done;