From: Blake Ramsdell Date: Fri, 2 Nov 2007 02:38:22 +0000 (-0700) Subject: transport.c: squelch a gcc 4.0.1 complaint about an uninitialized variable X-Git-Tag: v1.5.4-rc0~287^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=47ec79430dc6a60336bebdc0a45fb9f15129d0c7;p=git.git transport.c: squelch a gcc 4.0.1 complaint about an uninitialized variable The variable is always set if it is going to be used; gcc just does not notice it. Signed-off-by: Blake Ramsdell Signed-off-by: Junio C Hamano --- diff --git a/transport.c b/transport.c index 5132d289d..d44fe7cee 100644 --- a/transport.c +++ b/transport.c @@ -107,7 +107,7 @@ static void insert_packed_refs(const char *packed_refs, struct ref **list) return; for (;;) { - int cmp, len; + int cmp = cmp, len; if (!fgets(buffer, sizeof(buffer), f)) { fclose(f);