progress: Initialize display percentage variable

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

Change-Id: I704bf9a1250e95df65ef8790036f94c0a77da8d8
This commit is contained in:
Matt Mower
2016-03-31 12:26:53 -05:00
parent 472f506817
commit 14f8ac1cf8

View File

@@ -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];