]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: config_idmap()
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 May 2017 12:39:33 +0000 (14:39 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 15 Aug 2017 21:33:27 +0000 (17:33 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 745a815fefe4b99b93d7de3c65584cf272a6488a..440fc9a0099807b64702946b4bdcb6a51d0a40a3 100644 (file)
@@ -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);