Skip to content

Commit

Permalink
progress: Initialize display percentage variable
Browse files Browse the repository at this point in the history
progress_percent can be set to an uninitilized display_percent if
total_backup_size == 0.

Change-Id: I704bf9a1250e95df65ef8790036f94c0a77da8d8
  • Loading branch information
mdmower committed Mar 31, 2016
1 parent 472f506 commit 14f8ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion progresstracking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 14f8ac1

Please sign in to comment.