mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
Initialize variable
Fixes coverity CID 161628
This commit is contained in:
parent
c3b1c57d67
commit
562080de69
@ -167,7 +167,7 @@ namespace Utils
|
||||
throw std::runtime_error ("Incorrect number of version components");
|
||||
|
||||
bool ok = false;
|
||||
ComponentsArray res;
|
||||
ComponentsArray res{};
|
||||
for (std::size_t i = 0; i < static_cast<std::size_t>(versionParts.size()); ++i) {
|
||||
res[i] = static_cast<T>(versionParts[i].toInt(&ok));
|
||||
if (!ok)
|
||||
|
Loading…
Reference in New Issue
Block a user