From 884a45801f8eab43d50b291121e8e93be86faf38 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Mon, 29 May 2017 14:53:07 +0200 Subject: [PATCH] confile: config_personality() Signed-off-by: Christian Brauner --- src/lxc/confile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index d0854ba04..2a62de615 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -1241,6 +1241,9 @@ static int config_personality(const char *key, const char *value, static int config_pts(const char *key, const char *value, struct lxc_conf *lxc_conf) { + if (config_value_empty(value)) + return 0; + if (lxc_safe_uint(value, &lxc_conf->pts) < 0) return -1;