dovecot-2.2.32/src/doveadm/doveadm-mail-fetch.c: 4 * suspicious expression ?

Aki Tuomi aki.tuomi at dovecot.fi
Tue Aug 29 09:36:36 EEST 2017


On 2017-08-24 21:39, David Binderman wrote:
> Hello there,
>
> dovecot-2.2.32/src/doveadm/doveadm-mail-fetch.c:130]: (style) Suspicious condition (assignment + comparison); Clarify expression with parentheses.
>
> Source code is
>
>      if ((ret = doveadm_print_istream(input) < 0))
>
> Maybe better code
>
>      if ((ret = doveadm_print_istream(input)) < 0)
>
> Some duplicates:
>
> [dovecot-2.2.32/src/doveadm/doveadm-mail-fetch.c:220]: (style) Suspicious condition (assignment + comparison); Clarify expression with parentheses.
> [dovecot-2.2.32/src/doveadm/doveadm-mail-fetch.c:237]: (style) Suspicious condition (assignment + comparison); Clarify expression with parentheses.
> [dovecot-2.2.32/src/doveadm/doveadm-mail-fetch.c:261]: (style) Suspicious condition (assignment + comparison); Clarify expression with parentheses.
>
> Regards
>
> David Binderman

Thank you, we'll take a look.

Aki


More information about the dovecot mailing list