rp

simple email tools
git clone https://git.parazyd.org/rp
Log | Files | Refs | README | LICENSE

commit 36d771d88cc8a6caf80d583fde10e9cd01e6ad82
parent 982406d21587bde7a29db19abf16f0537bd6fcd8
Author: parazyd <parazyd@dyne.org>
Date:   Sun, 24 Feb 2019 00:18:46 +0100

Avoid unnecessary genrule calls in sieve.c

Diffstat:
Msieve.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sieve.c b/sieve.c @@ -70,8 +70,9 @@ int sievemain(int argc, char *argv[]) { else if (!strncmp("email=", l, 6)) rt = 69; - if (genrule(rt, l)) - die("Invalid syntax on line %d: %s\n", c, l); + if (rt > 0) + if (genrule(rt, l)) + die("Invalid syntax on line %d: %s\n", c, l); } return 0;