No longer shows "<unnamed>" for partitioning systems that have no name.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12851 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-05-26 19:58:36 +00:00
parent 0f04de87a7
commit b674940baa

View File

@ -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 = "<unnamed>";
if (name == NULL || name[0] == '\0') {
if (partition->ContainsFileSystem())
name = "<unnamed>";
else
name = "";
}
}
BPath path;