@matheusbsbs / matheus-bagliano / commits / cd554bb173
Fork 0

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>

Johannes Schindelin committed Jan 21, 2007 at 02:17 UTC cd554bb1733feb98ecee647176d0328cab53c2b7
1 file changed +1 -1
builtin-apply.c
+1 -1
@@ -2589,7 +2589,7 @@ static int git_apply_config(const char *var, const char *value)
2589 }
2590
2591
2592 -int cmd_apply(int argc, const char **argv, const char *prefix)
2592 +int cmd_apply(int argc, const char **argv, const char *unused_prefix)
2593 {
2594 int i;
2595 int read_stdin = 1;