summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-10-02 20:29:30 +0000
committerJune McEnroe <june@causal.agency>2021-10-02 20:29:30 +0000
commit03e2451be1c9261acc1606111ebd1cf5f9d2dbdd (patch)
tree4156bbfcf0edd3effcdbb7df638f1fa82463b7e7
parentCheck sizes of mailboxes, not times (diff)
downloadsrc-03e2451be1c9261acc1606111ebd1cf5f9d2dbdd.tar.gz
src-03e2451be1c9261acc1606111ebd1cf5f9d2dbdd.zip
Fix chkmail loop break condition
padvance_magic() returns -1 when there are no more paths left, not
zero.
-rw-r--r--bin/dash/src/mail.c2
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')
id=1fd0682a0f2eea92867b20502c70716b1400f33f&follow=1'>Add a bunch of photosJune McEnroe 2024-10-12Publish "film review"June McEnroe 2024-10-12Add photos from October 6June McEnroe 2024-10-12Add photos from October 5June McEnroe 2024-10-09Add photos from October 1June McEnroe 2024-10-07Add photos from September 29June McEnroe 2024-10-07Add photos from September 28June McEnroe 2024-10-07Add photos from September 22June McEnroe 2024-09-25Add photos from September 15June McEnroe 2024-09-24Add photos from September 14June McEnroe 2024-09-24Add photos from September 12June McEnroe 2024-09-24Add photos from September 7June McEnroe 2024-09-24Allow not having descriptionsJune McEnroe 2024-09-23Automatically select the last used lens for a bodyJune McEnroe 2024-09-19Add photos from September 5June McEnroe 2024-09-15Add some more film stocks to the listJune McEnroe 2024-09-13Add photos from September 2June McEnroe 2024-09-13Add Fomapan 200 to films listJune McEnroe 2024-09-10Add August 29 picnic photosJune McEnroe 2024-09-08Apply some bold to trips renderingJune McEnroe 2024-09-08Render trips hopefully more efficientlyJune McEnroe 2024-09-08Allow removing bodies and lensesJune McEnroe 2024-09-08Limit body width so it looks less silly on desktopJune McEnroe 2024-09-07Handle no film being loadedJune McEnroe 2024-09-07Fancy up the text a littleJune McEnroe