Commit d97669593ae0b423d9a380bba43047d3778f0d6e

Brad Morgan 2013-05-05T14:05:03

Cleanup

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/transports/ssh.c b/src/transports/ssh.c
index 8a2f9e3..252a802 100644
--- a/src/transports/ssh.c
+++ b/src/transports/ssh.c
@@ -210,12 +210,12 @@ static int git_ssh_extract_url_parts(
 		return -1;
 	}
 	
-	start = url;
 	at = strchr(url, '@');
 	if (at) {
 		start = at+1;
 		*username = git__substrdup(url, at - url);
 	} else {
+		start = url;
 		*username = git__strdup(default_user);
 	}