From cd554bb1733feb98ecee647176d0328cab53c2b7 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sun, 21 Jan 2007 02:17:19 +0100 Subject: [PATCH] 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: Johannes Schindelin --- builtin-apply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin-apply.c b/builtin-apply.c index 54fd2cb0c7..3fefdacd94 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -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; -- 2.11.4.GIT