Commit c87bf86cd739c30ab430a789e9eb0dfb1b1d78b7

Russell Belfer 2013-08-14T10:58:02

Commit 7affc2f7 removed var initialization That commit accidentally removed the initialization of the "start" variable giving undefined results for the host extraction from the url input.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/transports/ssh.c b/src/transports/ssh.c
index 1258a8e..e0126a8 100644
--- a/src/transports/ssh.c
+++ b/src/transports/ssh.c
@@ -215,6 +215,7 @@ static int git_ssh_extract_url_parts(
 		*username = git__substrdup(url, at - url);
 		GITERR_CHECK_ALLOC(*username);
 	} else {
+		start = url;
 		*username = NULL;
 	}