1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Fix compilation warning:

activate/dev_manager.c:362: warning: combined_percent_range may be used uninitialized in this function
This commit is contained in:
Milan Broz 2009-11-04 14:56:35 +00:00
parent 16d385ac6a
commit f8a4f79277

View File

@ -359,7 +359,7 @@ static int _percent_run(struct dev_manager *dm, const char *name,
struct dm_list *segh = &lv->segments;
struct lv_segment *seg = NULL;
struct segment_type *segtype;
percent_range_t percent_range, combined_percent_range;
percent_range_t percent_range = 0, combined_percent_range = 0;
int first_time = 1;
uint64_t total_numerator = 0, total_denominator = 0;