avoid NULL dereference on failed malloc
authorJim Meyering <jim@meyering.net>
Sun, 14 Jun 2009 19:46:10 +0000 (21:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Jun 2009 20:35:40 +0000 (13:35 -0700)
commitce61595ea7eb3df22f6a943a38a273141f1af978
tree558ef88b7c91c7d663b442469ea60e46808044bd
parent4a4b4cdaabde477514c4938b60961538e1d2d91f
avoid NULL dereference on failed malloc

* builtin-remote.c (get_one_entry): Use xmalloc, not malloc.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-remote.c