summaryrefslogtreecommitdiff
path: root/builtin-show-branch.c
diff options
context:
space:
mode:
authorBrian Gernhardt <benji@silverinsanity.com>2006-12-22 13:56:25 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-12-23 07:17:20 (GMT)
commitc321f00d09f56dcf2f149757a2a337f3732f3097 (patch)
tree8c510e21b9456ddb49d054490705ba4e895b47fa /builtin-show-branch.c
parent4b1552238ec3b8b711f60b2b65265a751a40f5ff (diff)
downloadgit-c321f00d09f56dcf2f149757a2a337f3732f3097.zip
git-c321f00d09f56dcf2f149757a2a337f3732f3097.tar.gz
git-c321f00d09f56dcf2f149757a2a337f3732f3097.tar.bz2
Keep "git --git-dir" from causing a bus error.
The option checking code for --git-dir had an off by 1 error that would cause it to access uninitialized memory if it was the last argument. This causes it to display an error and display the usage string instead. Signed-off-by: Brian Gernhardt <benji@silverinsanity.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-show-branch.c')
0 files changed, 0 insertions, 0 deletions