diff options
author | June McEnroe <june@causal.agency> | 2021-10-02 20:29:30 +0000 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2022-01-21 22:08:53 -0500 |
commit | 4f01bfef1201bf679fc4487342ba5457bdf267ad (patch) | |
tree | a54a55bd0e87d426918dde6162b2329d310e9039 /src | |
parent | dash: Check sizes of mailboxes, not times (diff) | |
download | dash-4f01bfef1201bf679fc4487342ba5457bdf267ad.tar.gz dash-4f01bfef1201bf679fc4487342ba5457bdf267ad.zip |
dash: Fix chkmail loop break condition
padvance_magic() returns -1 when there are no more paths left, not zero.
Diffstat (limited to 'src')
-rw-r--r-- | src/mail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail.c b/src/mail.c index e6baaa1..ec5bd10 100644 --- a/src/mail.c +++ b/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') |