Skip to content

Commit 7a6d642

Browse files
drafnelgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 18fe5ad commit 7a6d642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/credential/gnome-keyring/git-credential-gnome-keyring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ int main(int argc, char *argv[])
396396

397397
if (!argv[1]) {
398398
usage(argv[0]);
399-
goto out;
399+
exit(EXIT_FAILURE);
400400
}
401401

402402
/* lookup operation callback */

0 commit comments

Comments
 (0)