@matheusbsbs / matheus-bagliano / commits / 147a1ab035
Fork 0

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>

H. Peter Anvin committed Oct 20, 2005 at 18:34 UTC 147a1ab03599c21c9e5972739c460fd2635c0c02
1 file changed +1 -1
daemon.c
+1 -1
@@ -562,7 +562,7 @@ int main(int argc, char **argv)
562 if (!strncmp(arg, "--timeout=", 10)) {
563 timeout = atoi(arg+10);
564 }
565 - if (!strncmp(arg, "--init-timeout=", 10)) {
565 + if (!strncmp(arg, "--init-timeout=", 15)) {
566 init_timeout = atoi(arg+15);
567 }
568 if (!strcmp(arg, "--")) {