aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/other/blkid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/blkid.c b/toys/other/blkid.c
index 40391de4..e3badca7 100644
--- a/toys/other/blkid.c
+++ b/toys/other/blkid.c
@@ -73,7 +73,7 @@ static void show_tag(char *key, char *value)
for (al = TT.s; al; al = al->next) if (!strcmp(key, al->arg)) show = 1;
} else show = 1;
- if (show) printf(" %s=\"%s\"", key, value);
+ if (show && *value) printf(" %s=\"%s\"", key, value);
}
static void flagshow(char *s, char *name)