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; }