Code

setup_git_directory: fix segfault if repository is found in cwd
authorMatthias Lederhofer <matled@gmx.net>
Wed, 6 Jun 2007 21:29:59 +0000 (23:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jun 2007 23:07:53 +0000 (16:07 -0700)
commitf4f51add2712293b7bc9e7aaebf6a589bb37c7c7
treecb05aa5300e48e16ed7f84f92b39473e38a1e5d3
parent3ae4a867d37237e8f8156be1409a4a992bd37fb0
setup_git_directory: fix segfault if repository is found in cwd

Additionally there was a similar part calling setenv and getenv
in the same way which missed a check if getenv succeeded.

Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c