From b674940baa6082e758b4d22a788f01c3806249eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 26 May 2005 19:58:36 +0000 Subject: [PATCH] No longer shows "" for partitioning systems that have no name. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12851 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/mountvolume.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/bin/mountvolume.cpp b/src/bin/mountvolume.cpp index 4865daaccf..cee793cf6d 100644 --- a/src/bin/mountvolume.cpp +++ b/src/bin/mountvolume.cpp @@ -57,8 +57,7 @@ static const char *kUsage = " -publishall - ignored\n" " -publishbfs - ignored\n" " -publishhfs - ignored\n" - " -publishdos - ignored\n" -; + " -publishdos - ignored\n"; // application name const char *kAppName = __progname; @@ -200,8 +199,12 @@ struct PrintPartitionsVisitor : public BDiskDeviceVisitor { const char *name = partition->ContentName(); if (name == NULL || name[0] == '\0') { name = partition->Name(); - if (name == NULL || name[0] == '\0') - name = ""; + if (name == NULL || name[0] == '\0') { + if (partition->ContainsFileSystem()) + name = ""; + else + name = ""; + } } BPath path;