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:
Axel Dörfler 2005-05-03 02:00:58 +00:00
parent 0953c83ebd
commit 75e4e6ee69
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
//----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
// This software is part of the Haiku distribution and is covered
// by the MIT license.
//---------------------------------------------------------------------
#include <errno.h>
@ -399,7 +399,7 @@ BPartition::GetMountPoint(BPath *mountPoint) const
// partition not mounted
// get the volume name
const char *volumeName = ContentName();
if (volumeName || strlen(volumeName) == 0)
if (!volumeName || strlen(volumeName) == 0)
volumeName = Name();
if (!volumeName || strlen(volumeName) == 0)
volumeName = "unnamed volume";