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: http://git.ipfire.org/?a=commitdiff_plain;h=47ec794;p=thirdparty%2Fgit.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 5132d289da..d44fe7cee7 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);