mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit aee4d6e8e59022b9632afe8e628b55351ffc3f7e
parent 011a13463f7dbeafad0e168c365dcda291083cf4
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Tue, 11 Jul 2017 15:39:37 +0200

mlist: squeeze squeezing code

Thanks to quinq, who put all their heart in it.

Diffstat:
mlist.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/mlist.c b/mlist.c @@ -173,9 +173,8 @@ listarg(char *arg) // squeeze slashes s = t = arg; while ((*s++ = *t)) - if (*t++ == '/') - while (*t == '/') - t++; + while (*t++ == '/' && *t == '/') + ; // remove trailing slashes s--; while (*--s == '/')