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-Tag: v1.8.5-rc0~28^2~11 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7a6d6423c5a66589112f651a394b3a3ec076a7cf?ds=inline;hp=--cc 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 --- 7a6d6423c5a66589112f651a394b3a3ec076a7cf 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 */