mirror of
https://github.com/git/git.git
synced 2024-11-18 15:04:49 +01:00
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
1 changed files with 1 additions and 1 deletions
2
daemon.c
2
daemon.c
|
@ -562,7 +562,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, "--")) {
|
||||
|
|
Loading…
Reference in a new issue