Source: fix possible undefined behavior

This commit is contained in:
Alex Overchenko
2025-12-20 09:28:36 +03:00
parent db24521141
commit 32a68a0c40

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;
}