Skip to content

Commit 1758d23

Browse files
committed
Merge branch 'nd/dir-prep-exclude-cleanup'
Code clean-up. * nd/dir-prep-exclude-cleanup: dir.c: remove the second declaration of "stk" in prep_exclude()
2 parents e4da4fb + 03e11a7 commit 1758d23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,9 +826,9 @@ static void prep_exclude(struct dir_struct *dir, const char *base, int baselen)
826826
current = stk ? stk->baselen : -1;
827827
strbuf_setlen(&dir->basebuf, current < 0 ? 0 : current);
828828
while (current < baselen) {
829-
struct exclude_stack *stk = xcalloc(1, sizeof(*stk));
830829
const char *cp;
831830

831+
stk = xcalloc(1, sizeof(*stk));
832832
if (current < 0) {
833833
cp = base;
834834
current = 0;

0 commit comments

Comments
 (0)