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

libdm: check dm_pool_begin_object() return value.

This commit is contained in:
Bryn M. Reeves 2015-09-07 11:52:54 +01:00
parent 36b09fd147
commit e75b4bc2df

View File

@ -717,7 +717,8 @@ static int _stats_parse_histogram(struct dm_pool *mem, char *hist_str,
c = hist_str;
dm_pool_begin_object(mem, sizeof(cur));
if (!dm_pool_begin_object(mem, sizeof(cur)))
return_0;
hist.nr_bins = nr_bins;