Fixed a small bug: the proposed name of a file system was always "unnamed volume"
in case BPartition::Name() was NULL or empty (ContentName() was ignored). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12549 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// This software is part of the OpenBeOS distribution and is covered
|
// This software is part of the Haiku distribution and is covered
|
||||||
// by the OpenBeOS license.
|
// by the MIT license.
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -399,7 +399,7 @@ BPartition::GetMountPoint(BPath *mountPoint) const
|
|||||||
// partition not mounted
|
// partition not mounted
|
||||||
// get the volume name
|
// get the volume name
|
||||||
const char *volumeName = ContentName();
|
const char *volumeName = ContentName();
|
||||||
if (volumeName || strlen(volumeName) == 0)
|
if (!volumeName || strlen(volumeName) == 0)
|
||||||
volumeName = Name();
|
volumeName = Name();
|
||||||
if (!volumeName || strlen(volumeName) == 0)
|
if (!volumeName || strlen(volumeName) == 0)
|
||||||
volumeName = "unnamed volume";
|
volumeName = "unnamed volume";
|
||||||
|
|||||||
Reference in New Issue
Block a user