Disk: don't display file system if it's not set

This commit is contained in:
李通洲 authored and 李通洲 committed 2023-06-19 17:11:57 +08:00
1 parent baa8992322
commit 16d2fd7f9b
1 file changed
+2 -1
+2 -1
View File
@@ -60,7 +60,8 @@ static void printDisk(FFinstance* instance, FFDiskOptions* options, const FFDisk
if(!(instance->config.percentType & FF_PERCENTAGE_TYPE_HIDE_OTHERS_BIT))
{
ffStrbufAppendF(&str, "- %s ", disk->filesystem.chars);
if(disk->filesystem.length)
ffStrbufAppendF(&str, "- %s ", disk->filesystem.chars);
if(disk->type & FF_DISK_TYPE_EXTERNAL_BIT)
ffStrbufAppendS(&str, "[External]");