contrib/git-credential-gnome-keyring.c: exit non-zero when called incorrectly
authorBrandon Casey <drafnel@gmail.com>
Mon, 23 Sep 2013 18:49:06 +0000 (11:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Oct 2013 16:35:30 +0000 (09:35 -0700)
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>
contrib/credential/gnome-keyring/git-credential-gnome-keyring.c
index 3ff541cfab83cdf19b979aed18d058804cff0fe3..04852d77d3a1c5363daf0d01460abe43a6edbed3 100644 (file)
@@ -396,7 +396,7 @@ int main(int argc, char *argv[])
 
        if (!argv[1]) {
                usage(argv[0]);
-               goto out;
+               exit(EXIT_FAILURE);
        }
 
        /* lookup operation callback */