tree_entry_interesting: make use of local pointer "item"
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 24, 2011 at 17:36 UTC
9c6bebd14233af291ffb8dde2975b06c76e9ce5f
1 file changed
+2
-2
tree-walk.c
+2
-2
@@ -626,7 +626,7 @@ enum interesting tree_entry_interesting(const struct name_entry *entry,
626
&never_interesting))
627
return entry_interesting;
628
629
- if (ps->items[i].use_wildcard) {
629
+ if (item->use_wildcard) {
630
if (!fnmatch(match + baselen, entry->path, 0))
631
return entry_interesting;
632
@@ -642,7 +642,7 @@ enum interesting tree_entry_interesting(const struct name_entry *entry,
642
}
643
644
match_wildcards:
645
- if (!ps->items[i].use_wildcard)
645
+ if (!item->use_wildcard)
646
continue;
647
648
/*