1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

cleanup: initilize percent to INVALID

Always initialize percent to INVALID value, in case target
would have forget to setup this value somehow.
This commit is contained in:
Zdenek Kabelac 2012-06-20 12:05:00 +02:00
parent c6f680ee49
commit eb08f86521

View File

@ -514,11 +514,11 @@ static int _percent_run(struct dev_manager *dm, const char *name,
struct lv_segment *seg = NULL;
struct segment_type *segtype;
int first_time = 1;
percent_t percent;
percent_t percent = PERCENT_INVALID;
uint64_t total_numerator = 0, total_denominator = 0;
*overall_percent = PERCENT_INVALID;
*overall_percent = percent;
if (!(dmt = _setup_task(name, dlid, event_nr,
wait ? DM_DEVICE_WAITEVENT : DM_DEVICE_STATUS, 0, 0)))