Code

Don't rely on unspecified behavior
authorThomas Schwinge <tschwinge@gnu.org>
Sat, 28 Jul 2007 18:26:35 +0000 (20:26 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 29 Jul 2007 01:50:36 +0000 (18:50 -0700)
commit8b4aee015e2d81dc6cc53328aedc66742a5306d8
treece7f5168143359b93158476e83b61f8fbae7c052
parent12075103ddc9a061cf6f3b04feb206123bb78e2f
Don't rely on unspecified behavior

Calling access(p, m) with p == NULL is not specified, so don't do that.  On
GNU/Hurd systems doing so will result in a SIGSEGV.

Signed-off-by: Thomas Schwinge <tschwinge@gnu.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-add.c