1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdm: fix <backtrace> in dm_stats_get_nr_regions

This commit is contained in:
Bryn M. Reeves 2016-07-05 18:33:02 +01:00
parent cf0fa3d693
commit 53e92441a6

View File

@ -2132,8 +2132,12 @@ void dm_stats_buffer_destroy(struct dm_stats *dms, char *buffer)
uint64_t dm_stats_get_nr_regions(const struct dm_stats *dms)
{
if (!dms || !dms->regions)
if (!dms)
return_0;
if (!dms->regions)
return 0;
return dms->nr_regions;
}