]> sourceware.org Git - lvm2.git/commitdiff
Move initialization of the 'cmd' member of the struct alloc_handle
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 14 Jan 2010 10:09:42 +0000 (10:09 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 14 Jan 2010 10:09:42 +0000 (10:09 +0000)
before the first potentional return.

lib/metadata/lv_manip.c

index 57c3d08d0a5139646f49bc097b64bcb151985c5f..e54c45361acc0903c74cf65b711a8f96b2b93f2e 100644 (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;
This page took 0.037834 seconds and 5 git commands to generate.