mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Move initialization of the 'cmd' member of the struct alloc_handle
before the first potentional return.
This commit is contained in:
parent
5f31bc7926
commit
4269e36315
@ -566,11 +566,11 @@ static struct alloc_handle *_alloc_init(struct cmd_context *cmd,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ah->cmd = cmd;
|
||||
|
||||
if (segtype_is_virtual(segtype))
|
||||
return ah;
|
||||
|
||||
ah->cmd = cmd;
|
||||
|
||||
if (!(ah->mem = dm_pool_create("allocation", 1024))) {
|
||||
log_error("allocation pool creation failed");
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user