From: Christian Brauner Date: Mon, 29 May 2017 12:39:33 +0000 (+0200) Subject: confile: config_idmap() X-Git-Tag: lxc-1.0.11~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec98a414342683b0bb9e2592a1a8b088602583d9;p=thirdparty%2Flxc.git confile: config_idmap() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 745a815fe..440fc9a00 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -1366,7 +1366,7 @@ static int config_idmap(const char *key, const char *value, struct lxc_conf *lxc char type; int ret; - if (!value || strlen(value) == 0) + if (config_value_empty(value)) return lxc_clear_idmaps(lxc_conf); subkey = strstr(key, token);