mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-29 19:18:42 -07:00
Initialize variable
Fixes coverity CID 161628
This commit is contained in:
parent
c3b1c57d67
commit
562080de69
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ namespace Utils
|
||||||
throw std::runtime_error ("Incorrect number of version components");
|
throw std::runtime_error ("Incorrect number of version components");
|
||||||
|
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
ComponentsArray res;
|
ComponentsArray res{};
|
||||||
for (std::size_t i = 0; i < static_cast<std::size_t>(versionParts.size()); ++i) {
|
for (std::size_t i = 0; i < static_cast<std::size_t>(versionParts.size()); ++i) {
|
||||||
res[i] = static_cast<T>(versionParts[i].toInt(&ok));
|
res[i] = static_cast<T>(versionParts[i].toInt(&ok));
|
||||||
if (!ok)
|
if (!ok)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue