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:
parent
36b09fd147
commit
e75b4bc2df
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user