progress: Initialize display percentage variable
progress_percent can be set to an uninitilized display_percent if
total_backup_size == 0.
Change-Id: I704bf9a1250e95df65ef8790036f94c0a77da8d8
diff --git a/progresstracking.cpp b/progresstracking.cpp
index b43e130..64115b9 100644
--- a/progresstracking.cpp
+++ b/progresstracking.cpp
@@ -83,7 +83,7 @@
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];