1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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 ba3851fda6
commit 6ddadf4023

View File

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