Fix git-daemon argument-parsing bug

Fix stupid bug in parsing the --init-timeout option.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
H. Peter Anvin 2005-10-20 18:34:58 -07:00 committed by Junio C Hamano
parent 2707da9c08
commit 54e31a205c

View File

@ -612,7 +612,7 @@ int main(int argc, char **argv)
if (!strncmp(arg, "--timeout=", 10)) {
timeout = atoi(arg+10);
}
if (!strncmp(arg, "--init-timeout=", 10)) {
if (!strncmp(arg, "--init-timeout=", 15)) {
init_timeout = atoi(arg+15);
}
if (!strcmp(arg, "--")) {