mblaze

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

commit c2f9fa727174088537033c32680afc858d841110
parent 019a6680f5581e18e820e98373dcba00d9bb77fe
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Thu,  4 Aug 2016 20:17:07 +0200

mscan: silence %b when !msg

Diffstat:
mscan.c | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/mscan.c b/mscan.c @@ -367,9 +367,13 @@ oneline(char *file) case 'b': { struct stat st; - if (stat(file, &st) != 0) - st.st_size = 0; - print_human(st.st_size); + if (msg) { + if (stat(file, &st) != 0) + st.st_size = 0; + print_human(st.st_size); + } else { + printf(" "); + } wleft -= 5; } break;