Code

Fix space in string " false" problem in "trace.c".
authorChristian Couder <chriscool@tuxfamily.org>
Tue, 12 Sep 2006 04:43:08 +0000 (06:43 +0200)
committerJunio C Hamano <junkio@cox.net>
Wed, 13 Sep 2006 05:36:19 +0000 (22:36 -0700)
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
trace.c

diff --git a/trace.c b/trace.c
index ce01c3474948ec593c87843309ec767ace57f07e..f9efc918b8a0aa907a36edd107a2fa2a14582e78 100644 (file)
--- a/trace.c
+++ b/trace.c
@@ -55,7 +55,7 @@ static int get_trace_fd(int *need_close)
 {
        char *trace = getenv("GIT_TRACE");
 
-       if (!trace || !strcmp(trace, "0") || !strcasecmp(trace,false"))
+       if (!trace || !strcmp(trace, "0") || !strcasecmp(trace, "false"))
                return 0;
        if (!strcmp(trace, "1") || !strcasecmp(trace, "true"))
                return STDERR_FILENO;