From 47ec79430dc6a60336bebdc0a45fb9f15129d0c7 Mon Sep 17 00:00:00 2001 From: Blake Ramsdell Date: Thu, 1 Nov 2007 19:38:22 -0700 Subject: [PATCH] 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 --- transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.4.GIT