From cdee76e3b12b0733ef2bb215656f869d010d3e71 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Mon, 29 May 2017 14:37:59 +0200 Subject: [PATCH] confile: config_environment() Signed-off-by: Christian Brauner --- src/lxc/confile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 78b3865dd..359fcbba4 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -1328,7 +1328,7 @@ static int config_environment(const char *key, const char *value, { struct lxc_list *list_item = NULL; - if (!strlen(value)) + if (config_value_empty(value)) return lxc_clear_environment(lxc_conf); list_item = malloc(sizeof(*list_item)); -- 2.47.3