From 14f8ac1cf88bda8df3ee70cbf74c0718d47616ac Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Thu, 31 Mar 2016 12:26:53 -0500 Subject: progress: Initialize display percentage variable progress_percent can be set to an uninitilized display_percent if total_backup_size == 0. Change-Id: I704bf9a1250e95df65ef8790036f94c0a77da8d8 --- progresstracking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progresstracking.cpp b/progresstracking.cpp index b43e13057..64115b924 100644 --- a/progresstracking.cpp +++ b/progresstracking.cpp @@ -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]; -- cgit v1.2.3