aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-04 20:17:07 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-04 20:17:07 +0200
commitc2f9fa727174088537033c32680afc858d841110 (patch)
treeb036e481b0a55deabcdb761d827d1694640d81f3
parent019a6680f5581e18e820e98373dcba00d9bb77fe (diff)
downloadmblaze-c2f9fa727174088537033c32680afc858d841110.tar.gz
mscan: silence %b when !msg
-rw-r--r--mscan.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/mscan.c b/mscan.c
index 1148a31..6424f8e 100644
--- 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;