Skip to content

Commit

Permalink
tree_entry_interesting: make use of local pointer "item"
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Nguyễn Thái Ngọc Duy authored and Junio C Hamano committed Oct 27, 2011
1 parent d688cf0 commit 9c6bebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tree-walk.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ enum interesting tree_entry_interesting(const struct name_entry *entry,
&never_interesting))
return entry_interesting;

if (ps->items[i].use_wildcard) {
if (item->use_wildcard) {
if (!fnmatch(match + baselen, entry->path, 0))
return entry_interesting;

Expand All @@ -642,7 +642,7 @@ enum interesting tree_entry_interesting(const struct name_entry *entry,
}

match_wildcards:
if (!ps->items[i].use_wildcard)
if (!item->use_wildcard)
continue;

/*
Expand Down

0 comments on commit 9c6bebd

Please sign in to comment.