don't dereference NULL upon fdopen failure
commit41698375ada57d51cf6db5cf25970ccd1b918180
authorJim Meyering <meyering@redhat.com>
Sat, 12 Sep 2009 08:43:27 +0000 (12 10:43 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 Sep 2009 08:32:20 +0000 (13 01:32 -0700)
treea1ed2b0f32a829bdb0b4cece3d85df933b924962
parent3d913526b19545eb4e463f96d2f3b8db8daae6ef
don't dereference NULL upon fdopen failure

There were several unchecked use of fdopen(); replace them with xfdopen()
that checks and dies.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-add.c
builtin-mailsplit.c
bundle.c
transport-helper.c
upload-pack.c