diff options
author | Jeff King <peff@peff.net> | 2011-12-10 05:40:49 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-12-12 16:09:38 -0800 |
commit | 6c597aeba1e0fc369e64b1033515b0e39544cbe1 (patch) | |
tree | 57b7f8d81719ec42ae2ae89f19993946879b1c2b /imap-send.c | |
parent | 50d0158fbba5c4cd04184bb757bf43a84c290405 (diff) | |
download | git-6c597aeba1e0fc369e64b1033515b0e39544cbe1.tar.gz |
imap-send: don't check return value of git_getpass
git_getpass will always die() if we weren't able to get
input, so there's no point looking for NULL.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'imap-send.c')
-rw-r--r-- | imap-send.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/imap-send.c b/imap-send.c index 4c1e897113..227253ea19 100644 --- a/imap-send.c +++ b/imap-send.c @@ -1213,10 +1213,6 @@ static struct store *imap_open_store(struct imap_server_conf *srvc) strbuf_addf(&prompt, "Password (%s@%s): ", srvc->user, srvc->host); arg = git_getpass(prompt.buf); strbuf_release(&prompt); - if (!arg) { - perror("getpass"); - exit(1); - } if (!*arg) { fprintf(stderr, "Skipping account %s@%s, no password\n", srvc->user, srvc->host); goto bail; |