]> sourceware.org Git - lvm2.git/commitdiff
stats: initilize regions to NULL
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 21 Dec 2018 21:42:36 +0000 (22:42 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 21 Dec 2018 21:42:36 +0000 (22:42 +0100)
Commit 3750b0cff5ab1c41076afdf8275e3fa20aa756d0 used bad: error
path in more occasions thus it now needs regions defined as NULL.

libdm/libdm-stats.c

index 80cb42b57138fccfb4a79edc299e548d13c129c8..4c7fd46525bc6f1ba439f81612c5d514890374d6 100644 (file)
@@ -4809,7 +4809,7 @@ uint64_t *dm_stats_update_regions_from_fd(struct dm_stats *dms, int fd,
 {
        struct dm_histogram *bounds = NULL;
        int nr_bins, precise, regroup;
-       uint64_t *regions, count = 0;
+       uint64_t *regions = NULL, count = 0;
        const char *alias = NULL;
 
        if (!dms->regions || !dm_stats_group_present(dms, group_id)) {
This page took 0.036011 seconds and 5 git commands to generate.