diff options
author | Alasdair Kergon <agk@redhat.com> | 2004-04-08 17:21:01 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2004-04-08 17:21:01 +0000 |
commit | e4df99ea8494af2e7dafef36fd32e2966147abb3 (patch) | |
tree | e921c8869b00596b3af6ed9ac7a6b967ebacc2fe | |
parent | b3276f5f118a4bf4cc56605caf74afc5bb75a1a0 (diff) | |
download | lvm2-e4df99ea8494af2e7dafef36fd32e2966147abb3.tar.gz |
fix patch that misappliedv2_00_11old-v2_00_11
-rw-r--r-- | lib/commands/toolcontext.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c index c1e6cd82f..ba837b5fd 100644 --- a/lib/commands/toolcontext.c +++ b/lib/commands/toolcontext.c @@ -450,6 +450,11 @@ static int _init_hostname(struct cmd_context *cmd) return 0; } + if (!(cmd->kernel_vsn = pool_strdup(cmd->libmem, uts.release))) { + log_error("_init_hostname: pool_strdup kernel_vsn failed"); + return 0; + } + return 1; } @@ -462,11 +467,6 @@ static int _set_tag(struct cmd_context *cmd, const char *tag) return 0; } - if (!(cmd->kernel_vsn = pool_strdup(cmd->libmem, uts.release))) { - log_error("_init_hostname: pool_strdup kernel_vsn failed"); - return 0; - } - return 1; } |