diff options
author | June McEnroe <june@causal.agency> | 2021-10-02 20:29:30 +0000 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-10-02 20:29:30 +0000 |
commit | 03e2451be1c9261acc1606111ebd1cf5f9d2dbdd (patch) | |
tree | 4156bbfcf0edd3effcdbb7df638f1fa82463b7e7 /bin | |
parent | Check sizes of mailboxes, not times (diff) | |
download | src-03e2451be1c9261acc1606111ebd1cf5f9d2dbdd.tar.gz src-03e2451be1c9261acc1606111ebd1cf5f9d2dbdd.zip |
Fix chkmail loop break condition
padvance_magic() returns -1 when there are no more paths left, not zero.
Diffstat (limited to '')
-rw-r--r-- | bin/dash/src/mail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dash/src/mail.c b/bin/dash/src/mail.c index e6baaa1b..ec5bd103 100644 --- a/bin/dash/src/mail.c +++ b/bin/dash/src/mail.c @@ -80,7 +80,7 @@ chkmail(void) int len; len = padvance_magic(&mpath, nullstr, 2); - if (!len) + if (len == -1) break; p = stackblock(); if (*p == '\0') |