summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-03-20 11:29:19 -0700
committerJunio C Hamano <gitster@pobox.com>2010-03-20 11:29:19 -0700
commit96203bb074544a37fcff9c3f2a68582b76caa263 (patch)
treec94d11799e9665230fc1bdf462fc6142590ce948 /daemon.c
parent6a01298a7ed2c18cd68358127304024575b27cc0 (diff)
parent8fe5d87622a4268079bf1e5738474f85d4e5c3bc (diff)
downloadgit-96203bb074544a37fcff9c3f2a68582b76caa263.tar.gz
Merge branch 'maint'
* maint: Update draft release notes to 1.7.0.3 fetch: Fix minor memory leak fetch: Future-proof initialization of a refspec on stack fetch: Check for a "^{}" suffix with suffixcmp() daemon: parse_host_and_port SIGSEGV if port is specified Makefile: Fix CDPATH problem pull: replace unnecessary sed invocation
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index 3769b6f570..7d9e1c03e8 100644
--- a/daemon.c
+++ b/daemon.c
@@ -420,7 +420,7 @@ static void parse_host_and_port(char *hostport, char **host,
*host = hostport;
*port = strrchr(hostport, ':');
if (*port) {
- *port = '\0';
+ **port = '\0';
++*port;
}
}