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 b7080d8516
commit 147a1ab035

View File

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