aboutsummaryrefslogtreecommitdiffstats
path: root/QtVsTools.Core
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2022-01-25 16:37:28 +0100
committerKarsten Heimrich <karsten.heimrich@qt.io>2022-01-28 07:04:07 +0000
commit9a239b1a96171cb5b87cc27f66aaab0e10616d1e (patch)
tree0dfaa1f734a536881b897f783cfe25983b5d365d /QtVsTools.Core
parentcca148637206a61a4e5e2f196ca10c781f17efa4 (diff)
Fix expression is always true
Change-Id: I526366e04df48ea3618a3eeb64b1eed6889eeb5a Reviewed-by: Miguel Costa <miguel.costa@qt.io>
Diffstat (limited to 'QtVsTools.Core')
-rw-r--r--QtVsTools.Core/CommandLineParser.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/QtVsTools.Core/CommandLineParser.cs b/QtVsTools.Core/CommandLineParser.cs
index 36f62835..3c4683d3 100644
--- a/QtVsTools.Core/CommandLineParser.cs
+++ b/QtVsTools.Core/CommandLineParser.cs
@@ -267,7 +267,7 @@ namespace QtVsTools.Core.CommandLine
var optFilePath = macros.ExpandString(argData.Substring(1));
string[] additionalArgs = File.ReadAllLines(
Path.Combine(workingDir, optFilePath));
- if (additionalArgs != null) {
+ if (additionalArgs.Length != 0) {
var additionalArgsString = string.Join(" ", additionalArgs
.Select(x => "\"" + x.Replace("\"", "\\\"") + "\""));
arguments.AddRange(TokenizeArgs(additionalArgsString, macros));