dir.c: remove the second declaration of "stk" in prep_exclude()

This "stk" shadows the first declaration at the top. There's currently no bad effect. But let's avoid it. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Oct 21, 2014 at 18:38 UTC 03e11a715bffb0715ebcc9d6370aac7b968b3a4a
1 file changed +1 -1
dir.c
+1 -1
@@ -816,9 +816,9 @@ static void prep_exclude(struct dir_struct *dir, const char *base, int baselen)
816 /* Read from the parent directories and push them down. */
817 current = stk ? stk->baselen : -1;
818 while (current < baselen) {
819 - struct exclude_stack *stk = xcalloc(1, sizeof(*stk));
819 const char *cp;
820
821 + stk = xcalloc(1, sizeof(*stk));
822 if (current < 0) {
823 cp = base;
824 current = 0;