提交 cd554bb1 编写于 作者: J Johannes Schindelin 提交者: Junio C Hamano

apply --cached: fix crash in subdirectory

The static variable "prefix" was shadowed by an unused parameter
of the same name. In case of execution in a subdirectory, the
static variable was accessed, leading to a crash.
Signed-off-by: NJohannes Schindelin <Johannes.Schindelin@gmx.de>
上级 16bfefee
......@@ -2589,7 +2589,7 @@ static int git_apply_config(const char *var, const char *value)
}
int cmd_apply(int argc, const char **argv, const char *prefix)
int cmd_apply(int argc, const char **argv, const char *unused_prefix)
{
int i;
int read_stdin = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册