Code

apply --cached: fix crash in subdirectory
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Sun, 21 Jan 2007 01:17:19 +0000 (02:17 +0100)
committerJunio C Hamano <junkio@cox.net>
Sun, 21 Jan 2007 03:05:20 +0000 (19:05 -0800)
commitcd554bb1733feb98ecee647176d0328cab53c2b7
treead409593e9da5581a22e9000bb6d228e726aafd7
parent16bfefeebcac375ff51652eb8b866b7b65cb4905
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>
builtin-apply.c