From: Nguyễn Thái Ngọc Duy Date: Mon, 24 Oct 2011 06:36:12 +0000 (+1100) Subject: tree_entry_interesting: make use of local pointer "item" X-Git-Tag: v1.7.8.1~14^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9c6bebd14233af291ffb8dde2975b06c76e9ce5f;p=git.git tree_entry_interesting: make use of local pointer "item" Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- diff --git a/tree-walk.c b/tree-walk.c index 4a03e9bd2..f82dba6a1 100644 --- a/tree-walk.c +++ b/tree-walk.c @@ -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; /*