diff options
author | Brandon Casey <drafnel@gmail.com> | 2013-09-23 11:49:06 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-10-16 09:35:30 -0700 |
commit | 7a6d6423c5a66589112f651a394b3a3ec076a7cf (patch) | |
tree | ec62ded09ddfb7efaedaa4cebcc08786643d4820 /contrib/credential/gnome-keyring/git-credential-gnome-keyring.c | |
parent | contrib/git-credential-gnome-keyring.c: add static where applicable (diff) | |
download | tgif-7a6d6423c5a66589112f651a394b3a3ec076a7cf.tar.xz |
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 <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/credential/gnome-keyring/git-credential-gnome-keyring.c')
-rw-r--r-- | contrib/credential/gnome-keyring/git-credential-gnome-keyring.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |