sparse: Fix some "Using plain integer as NULL pointer" warnings
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
2ad9d4cb18
commit
d27da38a19
|
@ -1193,13 +1193,13 @@ static struct store *imap_open_store(struct imap_server_conf *srvc)
|
||||||
if (!preauth) {
|
if (!preauth) {
|
||||||
#ifndef NO_OPENSSL
|
#ifndef NO_OPENSSL
|
||||||
if (!srvc->use_ssl && CAP(STARTTLS)) {
|
if (!srvc->use_ssl && CAP(STARTTLS)) {
|
||||||
if (imap_exec(ctx, 0, "STARTTLS") != RESP_OK)
|
if (imap_exec(ctx, NULL, "STARTTLS") != RESP_OK)
|
||||||
goto bail;
|
goto bail;
|
||||||
if (ssl_socket_connect(&imap->buf.sock, 1,
|
if (ssl_socket_connect(&imap->buf.sock, 1,
|
||||||
srvc->ssl_verify))
|
srvc->ssl_verify))
|
||||||
goto bail;
|
goto bail;
|
||||||
/* capabilities may have changed, so get the new capabilities */
|
/* capabilities may have changed, so get the new capabilities */
|
||||||
if (imap_exec(ctx, 0, "CAPABILITY") != RESP_OK)
|
if (imap_exec(ctx, NULL, "CAPABILITY") != RESP_OK)
|
||||||
goto bail;
|
goto bail;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue