Skip to content

Commit

Permalink
Merge branch 'nd/dir-prep-exclude-cleanup'
Browse files Browse the repository at this point in the history
Code clean-up.

* nd/dir-prep-exclude-cleanup:
  dir.c: remove the second declaration of "stk" in prep_exclude()
  • Loading branch information
Junio C Hamano committed Oct 24, 2014
2 parents e4da4fb + 03e11a7 commit 1758d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -826,9 +826,9 @@ static void prep_exclude(struct dir_struct *dir, const char *base, int baselen)
current = stk ? stk->baselen : -1;
strbuf_setlen(&dir->basebuf, current < 0 ? 0 : current);
while (current < baselen) {
struct exclude_stack *stk = xcalloc(1, sizeof(*stk));
const char *cp;

stk = xcalloc(1, sizeof(*stk));
if (current < 0) {
cp = base;
current = 0;
Expand Down

0 comments on commit 1758d23

Please sign in to comment.