]> diplodocus.org Git - nmh/commit
whom.c: Don't increment atoi(3)'s return value as it's already true.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 18 Sep 2017 10:59:37 +0000 (11:59 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 18 Sep 2017 12:10:13 +0000 (13:10 +0100)
commit6e613a1064f418cb3658e1e6c8aa14768816ee5c
tree23e7666e3ced67ec93cc8a5953cd556d3bb22cfb
parentc67c38e4cb1110be80927cf11a5ce14d316c4a51
whom.c: Don't increment atoi(3)'s return value as it's already true.

atoi(3) has returned non-zero and distsw holds that value.  Only the
truthness of distsw matters.  Don't increment distsw, as if to show it's
been set, because that would turn the true -1 to false 0.  Bug pre-dates
git.
uip/whom.c