From: Jeff King Date: Sat, 10 Dec 2011 10:40:49 +0000 (-0500) Subject: imap-send: don't check return value of git_getpass X-Git-Tag: v1.7.9-rc0~31^2~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6c597aeba1e0fc369e64b1033515b0e39544cbe1;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/imap-send.c b/imap-send.c index 4c1e89711..227253ea1 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;