Source: fix possible undefined behavior

This commit is contained in:
Alex Overchenko
2026-01-08 23:22:19 -05:00
parent db24521141
commit 32a68a0c40
+3 -1
View File
@@ -798,7 +798,9 @@ static std::string joinCommandLine(std::vector<std::string> const& args)
}
// drop trailing whitespace
ret.erase(ret.size() - 1);
if (!ret.empty()) {
ret.pop_back();
}
return ret;
}