From aa585126cc9de9e7f50dc2cc8a26c7025a8c0e09 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 2 Oct 2021 20:29:30 +0000 Subject: Fix chkmail loop break condition padvance_magic() returns -1 when there are no more paths left, not zero. --- bin/dash/src/mail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/dash') 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') -- cgit 1.4.1