From 6e613a1064f418cb3658e1e6c8aa14768816ee5c Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Mon, 18 Sep 2017 11:59:37 +0100 Subject: [PATCH] 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 | 1 - 1 file changed, 1 deletion(-) diff --git a/uip/whom.c b/uip/whom.c index 145190b7..7a2cacb8 100644 --- a/uip/whom.c +++ b/uip/whom.c @@ -174,7 +174,6 @@ main (int argc, char **argv) if (distout (msg, cp, backup) == NOTOK) done (1); vec[vecp++] = "-dist"; - distsw++; } vec[vecp] = NULL; -- 2.56.0