diff options
| author | Russell Belfer <rb@github.com> | 2013-08-14 10:58:02 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-08-14 10:58:02 -0700 |
| commit | c87bf86cd739c30ab430a789e9eb0dfb1b1d78b7 (patch) | |
| tree | 98221ef8f86f3cf6af5d94a83bb54f7d4ef5ea3c /src/transports/ssh.c | |
| parent | ad0af715751a37b4215ace8ddfcb69aa63ec8333 (diff) | |
| download | libgit2-c87bf86cd739c30ab430a789e9eb0dfb1b1d78b7.tar.gz | |
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.
Diffstat (limited to 'src/transports/ssh.c')
| -rw-r--r-- | src/transports/ssh.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/transports/ssh.c b/src/transports/ssh.c index 1258a8e68..e0126a8fb 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; } |
