]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: config_start()
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 May 2017 12:53:58 +0000 (14:53 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 May 2017 14:20:41 +0000 (16:20 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 2a62de6158881f8d56eec48582817150c3102d23..73e88d1e4425e4aabf805e91d12f8ca498096478 100644 (file)
@@ -1253,6 +1253,9 @@ static int config_pts(const char *key, const char *value,
 static int config_start(const char *key, const char *value,
                      struct lxc_conf *lxc_conf)
 {
+       if (config_value_empty(value))
+               return 0;
+
        if(strcmp(key, "lxc.start.auto") == 0) {
                if (lxc_safe_uint(value, &lxc_conf->start_auto) < 0)
                        return -1;