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>2022-01-21 22:08:53 -0500
commit4f01bfef1201bf679fc4487342ba5457bdf267ad (patch)
treea54a55bd0e87d426918dde6162b2329d310e9039
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.
-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')
y/2024-06-22/lens?id=0c7217c70986100325217b2b592e0ccf8e5ee9a1&follow=1'>Add photos from June 22 (and the few days after that)June McEnroe 2024-06-30Accommodate lower-case .jpg filesJune McEnroe 2024-06-23Add another BACKXWASH showJune McEnroe 2024-06-16Update bioJune McEnroe 2024-06-15Add photo descriptions from June 12June McEnroe 2024-06-10Add first roll of film from June 8June McEnroe 2024-06-10Cope with not having an EXIF infoJune McEnroe 2024-06-10Resize using target pixel counts for consistencyJune McEnroe 2024-06-10Add The Girl Who Was Convinced...June McEnroe 2024-06-09Add photos from May 31June McEnroe 2024-06-09Use monospace on photo pagesJune McEnroe 2024-06-09Put lens and (future) film at the tops of photo pagesJune McEnroe 2024-05-22Remove use of sysexits.hJune McEnroe 2024-05-22Add photo descriptions from 05-03 and 05-06June McEnroe 2024-05-21Fix = precedence in whenJune McEnroe