diff options
-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; } |