From: Brandon Casey Date: Mon, 23 Sep 2013 18:49:06 +0000 (-0700) Subject: contrib/git-credential-gnome-keyring.c: exit non-zero when called incorrectly X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=7a6d6423c5a66589112f651a394b3a3ec076a7cf;p=git.git 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 --- 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 */