From c832c7d79455d360662d9d8c8272a238df284cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 14 Jan 2023 20:35:08 +0800 Subject: [PATCH] Host: don't print None as product version --- src/modules/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/host.c b/src/modules/host.c index e8d8e6044..9fa3bafee 100644 --- a/src/modules/host.c +++ b/src/modules/host.c @@ -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); }