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

index 7cdc3d3d417fbf7a73eee3446361ecd4456b26b9..8b2ec0ddcfd040977a2c05c4a3a84ca6b049e3c3 100644 (file)
@@ -1454,7 +1454,7 @@ static int config_mount_auto(const char *key, const char *value,
        int i;
        int ret = -1;
 
-       if (!value || strlen(value) == 0) {
+       if (config_value_empty(value)) {
                lxc_conf->auto_mounts = 0;
                return 0;
        }