Code

tree_entry_interesting: make use of local pointer "item"
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 24 Oct 2011 06:36:12 +0000 (17:36 +1100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Oct 2011 18:38:24 +0000 (11:38 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tree-walk.c

index 4a03e9bd2136d1b991355622fa71983d07125460..f82dba6a1f43bf2a259952a4fd6db94d6335deb7 100644 (file)
@@ -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;
 
@@ -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;
 
                /*