Browse Source

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>
maint
Johannes Schindelin 18 years ago committed by Junio C Hamano
parent
commit
cd554bb173
  1. 2
      builtin-apply.c

2
builtin-apply.c

@ -2589,7 +2589,7 @@ static int git_apply_config(const char *var, const char *value) @@ -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;

Loading…
Cancel
Save