]> diplodocus.org Git - nmh/commitdiff
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)
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

index 145190b..7a2cacb 100644 (file)
@@ -174,7 +174,6 @@ main (int argc, char **argv)
        if (distout (msg, cp, backup) == NOTOK)
            done (1);
        vec[vecp++] = "-dist";
-       distsw++;
     }
     vec[vecp] = NULL;