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>
Brandon Casey committed
Sep 23, 2013 at 11:49 UTC
7a6d6423c5a66589112f651a394b3a3ec076a7cf
1 file changed
+1
-1
contrib/credential/gnome-keyring/git-credential-gnome-keyring.c
+1
-1
@@ -396,7 +396,7 @@ int main(int argc, char *argv[])
396
397
if (!argv[1]) {
398
usage(argv[0]);
399
- goto out;
399
+ exit(EXIT_FAILURE);
400
}
401
402
/* lookup operation callback */