]> sourceware.org Git - lvm2.git/commitdiff
systemid: Use correct mempool.
authorAlasdair G Kergon <agk@redhat.com>
Wed, 18 Mar 2015 23:25:30 +0000 (23:25 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 18 Mar 2015 23:25:30 +0000 (23:25 +0000)
libmem is necessary when this ends up in cmd->system_id.

lib/commands/toolcontext.c

index 54dcf86db45a6c169796b10647e8ab2b8e259d65..fb0e94dc5a09d77be56a371b5fa1b8e6f8ef2942 100644 (file)
@@ -67,7 +67,7 @@ const char *system_id_from_string(struct cmd_context *cmd, const char *str)
                return "";
        }
 
-       if (!(system_id = dm_pool_zalloc(cmd->mem, strlen(str) + 1))) {
+       if (!(system_id = dm_pool_zalloc(cmd->libmem, strlen(str) + 1))) {
                log_warn("WARNING: Failed to allocate system ID.");
                return NULL;
        }
This page took 0.042384 seconds and 5 git commands to generate.