提交 22570b68 编写于 作者: R René Scharfe 提交者: Junio C Hamano

dir: remove unused variable sb

It had never been used.
Signed-off-by: NRene Scharfe <l.s.r@web.de>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 5cd83e18
......@@ -385,7 +385,6 @@ int report_path_error(const char *ps_matched,
/*
* Make sure all pathspec matched; otherwise it is an error.
*/
struct strbuf sb = STRBUF_INIT;
int num, errors = 0;
for (num = 0; num < pathspec->nr; num++) {
int other, found_dup;
......@@ -417,7 +416,6 @@ int report_path_error(const char *ps_matched,
pathspec->items[num].original);
errors++;
}
strbuf_release(&sb);
return errors;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册