]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-program-client: Fixed boolean expressions.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 20 Oct 2016 13:46:01 +0000 (15:46 +0200)
committerGitLab <gitlab@git.dovecot.net>
Thu, 20 Oct 2016 14:03:56 +0000 (17:03 +0300)
Problems found with clang -Wstrict-bool.

src/lib-program-client/program-client-local.c
src/lib-program-client/program-client-remote.c

index bd7bb5b11b7efe3ecf81528fdcdb4c5e8b919109..735b91445f4dbe63af94e907c8031c6978f97fb3 100644 (file)
@@ -481,7 +481,7 @@ void program_client_local_switch_ioloop(struct program_client *pclient)
        struct program_client_local *plclient =
                (struct program_client_local *)pclient;
 
-       if (plclient->to_kill)
+       if (plclient->to_kill != NULL)
                plclient->to_kill = io_loop_move_timeout(&plclient->to_kill);
        lib_signals_reset_ioloop();
 }
index e7db8d73ddafd656c9df8aadbbed9fbdc28f062d..e543669fc6c4f4dab7c05fa8281b84ee2a294bde 100644 (file)
@@ -546,7 +546,7 @@ void program_client_remote_switch_ioloop(struct program_client *pclient)
                (struct program_client_remote *)pclient;
        if (prclient->to_retry != NULL)
                prclient->to_retry = io_loop_move_timeout(&prclient->to_retry);
-       if (prclient->lookup)
+       if (prclient->lookup != NULL)
                dns_lookup_switch_ioloop(prclient->lookup);
 }