Skip to content

Commit d27da38

Browse files
Ramsay Jonesgitster
authored andcommitted
sparse: Fix some "Using plain integer as NULL pointer" warnings
Signed-off-by: Ramsay Jones <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2ad9d4c commit d27da38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

imap-send.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,13 +1193,13 @@ static struct store *imap_open_store(struct imap_server_conf *srvc)
11931193
if (!preauth) {
11941194
#ifndef NO_OPENSSL
11951195
if (!srvc->use_ssl && CAP(STARTTLS)) {
1196-
if (imap_exec(ctx, 0, "STARTTLS") != RESP_OK)
1196+
if (imap_exec(ctx, NULL, "STARTTLS") != RESP_OK)
11971197
goto bail;
11981198
if (ssl_socket_connect(&imap->buf.sock, 1,
11991199
srvc->ssl_verify))
12001200
goto bail;
12011201
/* capabilities may have changed, so get the new capabilities */
1202-
if (imap_exec(ctx, 0, "CAPABILITY") != RESP_OK)
1202+
if (imap_exec(ctx, NULL, "CAPABILITY") != RESP_OK)
12031203
goto bail;
12041204
}
12051205
#endif

0 commit comments

Comments
 (0)