From 7a6d6423c5a66589112f651a394b3a3ec076a7cf Mon Sep 17 00:00:00 2001 From: Brandon Casey Date: Mon, 23 Sep 2013 11:49:06 -0700 Subject: [PATCH] contrib/git-credential-gnome-keyring.c: exit non-zero when called incorrectly If the correct arguments were not specified, this program should exit non-zero. Let's do so. Signed-off-by: Brandon Casey Signed-off-by: Junio C Hamano --- contrib/credential/gnome-keyring/git-credential-gnome-keyring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c b/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c index 3ff541cfab..04852d77d3 100644 --- a/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c +++ b/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c @@ -396,7 +396,7 @@ int main(int argc, char *argv[]) if (!argv[1]) { usage(argv[0]); - goto out; + exit(EXIT_FAILURE); } /* lookup operation callback */ -- 2.11.4.GIT