Commit 8b884363 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Make sure variable is initialized to 0 before adding

parent 4b497d10
......@@ -238,7 +238,7 @@ QDateTime ResourcesUpdatesModel::lastUpdate() const
double ResourcesUpdatesModel::updateSize() const
double ret;
double ret = 0.;
for(AbstractBackendUpdater* upd: m_updaters) {
ret += upd->updateSize();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment