summaryrefslogtreecommitdiff
path: root/src/transports/ssh.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-08-14 10:58:02 -0700
committerRussell Belfer <rb@github.com>2013-08-14 10:58:02 -0700
commitc87bf86cd739c30ab430a789e9eb0dfb1b1d78b7 (patch)
tree98221ef8f86f3cf6af5d94a83bb54f7d4ef5ea3c /src/transports/ssh.c
parentad0af715751a37b4215ace8ddfcb69aa63ec8333 (diff)
downloadlibgit2-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.c1
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;
}