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

This commit is contained in:
李通洲
2023-06-19 16:17:31 +08:00
committed by 李通洲
parent baa8992322
commit 16d2fd7f9b
+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]");