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 <Johannes.Schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin 2007-01-21 02:17:19 +01:00 committed by Junio C Hamano
parent 16bfefeebc
commit cd554bb173

View File

@ -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;