Commit 14f8ac1c authored by Matt Mower's avatar Matt Mower
Browse files

progress: Initialize display percentage variable

progress_percent can be set to an uninitilized display_percent if
total_backup_size == 0.

Change-Id: I704bf9a1250e95df65ef8790036f94c0a77da8d8
parent 472f5068
......@@ -83,7 +83,7 @@ void ProgressTracking::UpdateDisplayDetails(const bool force) {
return;
}
clock_gettime(CLOCK_MONOTONIC, &last_update);
double display_percent, progress_percent;
double display_percent = 0.0, progress_percent;
string size_prog = gui_lookup("size_progress", "%lluMB of %lluMB, %i%%");
char size_progress[1024];
......
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