提交 9c6bebd1 编写于 作者: N Nguyễn Thái Ngọc Duy 提交者: Junio C Hamano

tree_entry_interesting: make use of local pointer "item"

Signed-off-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 d688cf07
......@@ -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;
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册