From 75e4e6ee69dca86c3dd69b8cefc8c5a1a460087a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 3 May 2005 02:00:58 +0000 Subject: [PATCH] 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 --- src/kits/storage/Partition.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kits/storage/Partition.cpp b/src/kits/storage/Partition.cpp index 1f1e30d687..3cb59d43ad 100644 --- a/src/kits/storage/Partition.cpp +++ b/src/kits/storage/Partition.cpp @@ -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 @@ -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";