From: Ramsay Jones Date: Thu, 7 Apr 2011 18:24:57 +0000 (+0100) Subject: sparse: Fix some "Using plain integer as NULL pointer" warnings X-Git-Tag: v1.7.6-rc0~147^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d27da38a19d0c21702a012689f256b83545f2e7f;p=git.git sparse: Fix some "Using plain integer as NULL pointer" warnings Signed-off-by: Ramsay Jones Signed-off-by: Junio C Hamano --- diff --git a/imap-send.c b/imap-send.c index 9adf4b981..e1ad1a48c 100644 --- a/imap-send.c +++ b/imap-send.c @@ -1193,13 +1193,13 @@ static struct store *imap_open_store(struct imap_server_conf *srvc) if (!preauth) { #ifndef NO_OPENSSL if (!srvc->use_ssl && CAP(STARTTLS)) { - if (imap_exec(ctx, 0, "STARTTLS") != RESP_OK) + if (imap_exec(ctx, NULL, "STARTTLS") != RESP_OK) goto bail; if (ssl_socket_connect(&imap->buf.sock, 1, srvc->ssl_verify)) goto bail; /* 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; } #endif