[PATCH v2 05/16] contrib/git-credential-gnome-keyring.c: exit non-zero when called incorrectly
- From
- Brandon Casey <bcasey@nvidia.com>
- Date
- Sep 23, 2013, 18:49 UTC
- Message-ID
- <1379962157-1338-6-git-send-email-bcasey@nvidia.com>
- In-Reply-To
- <1379962157-1338-1-git-send-email-bcasey@nvidia.com>
From: Brandon Casey <drafnel@gmail.com>
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> --- contrib/credential/gnome-keyring/git-credential-gnome-keyring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c b/contrib/credential/gnome-keyring/git-credential-gnome-keyring.c index 3ff541c..04852d7 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 */
-- 1.8.4.rc4.6.g5555d19 ----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -----------------------------------------------------------------------------------