fix segfault showing an empty remote
commit6a01554e6350123c78de805d820e90f1c56e5fdc
authorClemens Buchacher <drizzd@aon.at>
Wed, 27 May 2009 20:13:43 +0000 (27 22:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 May 2009 06:16:16 +0000 (27 23:16 -0700)
tree512631158643b30cda638d18e1ca0ee70a7d3a8e
parente57cb0158209ece040a4b873064504efd7d2ec0e
fix segfault showing an empty remote

In case of an empty list, the search for its tail caused a
NULL-pointer dereference.

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Reported-by: Erik Faye-Lund <kusmabite@googlemail.com>
Acked-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-remote.c
t/t5505-remote.sh