summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-10-02 20:29:30 +0000
committerJune McEnroe <june@causal.agency>2022-01-21 22:08:53 -0500
commit4f01bfef1201bf679fc4487342ba5457bdf267ad (patch)
treea54a55bd0e87d426918dde6162b2329d310e9039 /src
parentdash: Check sizes of mailboxes, not times (diff)
downloaddash-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.c2
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')