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:
parent
b7080d8516
commit
147a1ab035
2
daemon.c
2
daemon.c
@ -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, "--")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user