1
0
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:
Zdenek Kabelac 2010-01-14 10:09:42 +00:00
parent 5f31bc7926
commit 4269e36315

View File

@ -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;