]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap-client: Fixed NULL check in assertion to be proper boolean.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 1 May 2017 20:19:43 +0000 (22:19 +0200)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 1 May 2017 20:24:46 +0000 (22:24 +0200)
Found using Clang -Wstrict-bool.

src/lib-imap-client/imapc-client.c

index 1fff64f7ec1d85ce820e6bc77ff8d0008e89a353..467b16fe770536fe01a788b448e7f9275cf34101 100644 (file)
@@ -314,7 +314,7 @@ void imapc_client_login(struct imapc_client *client)
 {
        struct imapc_client_connection *conn;
 
-       i_assert(client->login_callback);
+       i_assert(client->login_callback != NULL);
        i_assert(array_count(&client->conns) == 0);
 
        conn = imapc_client_add_connection(client);