From c87bf86cd739c30ab430a789e9eb0dfb1b1d78b7 Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Wed, 14 Aug 2013 10:58:02 -0700 Subject: [PATCH] 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. --- src/transports/ssh.c | 1 + 1 file changed, 1 insertion(+) 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; }