Host: don't print None as product version

This commit is contained in:
李通洲 committed 2023-01-15 16:55:33 +08:00
1 parent 52f36d29dc
commit c832c7d794
1 file changed
+1 -1
+1 -1
View File
@@ -33,7 +33,7 @@ void ffPrintHost(FFinstance* instance)
else
ffStrbufAppend(&output, &host->productFamily);
if(host->productVersion.length > 0)
if(host->productVersion.length > 0 && !ffStrbufIgnCaseEqualS(&host->productVersion, "none"))
{
ffStrbufAppendF(&output, " (%s)", host->productVersion.chars);
}