mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-08 08:58:50 +03:00
stats: initilize regions to NULL
Commit 3750b0cff5ab1c41076afdf8275e3fa20aa756d0 used bad: error path in more occasions thus it now needs regions defined as NULL.
This commit is contained in:
parent
1fc5d8c428
commit
83c6f7e7e6
@ -4809,7 +4809,7 @@ uint64_t *dm_stats_update_regions_from_fd(struct dm_stats *dms, int fd,
|
|||||||
{
|
{
|
||||||
struct dm_histogram *bounds = NULL;
|
struct dm_histogram *bounds = NULL;
|
||||||
int nr_bins, precise, regroup;
|
int nr_bins, precise, regroup;
|
||||||
uint64_t *regions, count = 0;
|
uint64_t *regions = NULL, count = 0;
|
||||||
const char *alias = NULL;
|
const char *alias = NULL;
|
||||||
|
|
||||||
if (!dms->regions || !dm_stats_group_present(dms, group_id)) {
|
if (!dms->regions || !dm_stats_group_present(dms, group_id)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user