summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transports/ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transports/ssh.c b/src/transports/ssh.c
index 47ea5ccf7..bf62bd185 100644
--- a/src/transports/ssh.c
+++ b/src/transports/ssh.c
@@ -51,7 +51,7 @@ static int gen_proto(git_buf *request, const char *cmd, const char *url)
repo = strchr(url, '/');
} else {
repo = strchr(url, ':');
- repo++;
+ if (repo) repo++;
}
if (!repo) {