aboutsummaryrefslogtreecommitdiff
path: root/toys/other/blkid.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other/blkid.c')
-rw-r--r--toys/other/blkid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/other/blkid.c b/toys/other/blkid.c
index 04c9b5f0..ee3564cf 100644
--- a/toys/other/blkid.c
+++ b/toys/other/blkid.c
@@ -116,14 +116,14 @@ static void do_blkid(int fd, char *name)
printf("%s:",name);
if (fstypes[i].label_len) {
- char *s = toybuf+fstypes[i].label_off-off;;
+ char *s = toybuf+fstypes[i].label_off-off;
len = fstypes[i].label_len;
if (!strcmp(type, "vfat")) {
while (len && s[len-1]==' ') len--;
if (strstart(&s, "NO NAME")) len=0;
}
- if (len) printf(" LABEL=\"%.*s\"", len, s);
+ if (len && *s) printf(" LABEL=\"%.*s\"", len, s);
}
if (fstypes[i].uuid_off) {