Skip to content

Commit 9c6bebd

Browse files
pcloudsgitster
authored andcommitted
tree_entry_interesting: make use of local pointer "item"
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d688cf0 commit 9c6bebd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tree-walk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ enum interesting tree_entry_interesting(const struct name_entry *entry,
626626
&never_interesting))
627627
return entry_interesting;
628628

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

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

644644
match_wildcards:
645-
if (!ps->items[i].use_wildcard)
645+
if (!item->use_wildcard)
646646
continue;
647647

648648
/*

0 commit comments

Comments
 (0)