From 96cfeb706adb9a6404ad52b662192a729890a3b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 26 May 2005 20:13:33 +0000 Subject: [PATCH] Now prints "" as the name of unrecognized file/partitioning systems. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12852 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/mountvolume.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/mountvolume.cpp b/src/bin/mountvolume.cpp index cee793cf6d..588dd7e6f3 100644 --- a/src/bin/mountvolume.cpp +++ b/src/bin/mountvolume.cpp @@ -206,13 +206,16 @@ struct PrintPartitionsVisitor : public BDiskDeviceVisitor { name = ""; } } + const char *type = partition->ContentType(); + if (type == NULL) + type = ""; BPath path; if (partition->IsMounted()) partition->GetMountPoint(&path); printf("%-16s %-20s %s\n", - name, partition->ContentType(), partition->IsMounted() ? path.Path() : ""); + name, type, partition->IsMounted() ? path.Path() : ""); return false; }