Skip to content

Commit

Permalink
confile: cleanup set_config_personality()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 8, 2020
1 parent 4c9ffb3 commit 62af653
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lxc/confile.c
Expand Up @@ -1242,8 +1242,9 @@ static int set_config_hooks_version(const char *key, const char *value,
static int set_config_personality(const char *key, const char *value,
struct lxc_conf *lxc_conf, void *data)
{
signed long personality = lxc_config_parse_arch(value);
signed long personality;

personality = lxc_config_parse_arch(value);
if (personality >= 0)
lxc_conf->personality = personality;
else
Expand Down

0 comments on commit 62af653

Please sign in to comment.