contrib/git-credential-gnome-keyring.c: ensure buffer is non-empty before accessing
commit73bbc0796b4ce65bfb1a12b47a0edc27845ecf50
authorBrandon Casey <drafnel@gmail.com>
Mon, 23 Sep 2013 18:49:08 +0000 (23 11:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Oct 2013 16:35:31 +0000 (16 09:35 -0700)
tree58672477c840a90eed386d58410bb125b1bd7e5d
parentfb2763746f2a4dcd63a5e4b389f8308e775684d8
contrib/git-credential-gnome-keyring.c: ensure buffer is non-empty before accessing

Ensure buffer length is non-zero before attempting to access the last
element.

Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/credential/gnome-keyring/git-credential-gnome-keyring.c