]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: config_monitor()
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 May 2017 12:54:23 +0000 (14:54 +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 73e88d1e4425e4aabf805e91d12f8ca498096478..dd35ba612f8e9a4dd6276a68af1b2dd2c1c4b134 100644 (file)
@@ -1280,6 +1280,9 @@ static int config_start(const char *key, const char *value,
 static int config_monitor(const char *key, const char *value,
                          struct lxc_conf *lxc_conf)
 {
+       if (config_value_empty(value))
+               return 0;
+
        if(strcmp(key, "lxc.monitor.unshare") == 0) {
                if (lxc_safe_uint(value, &lxc_conf->monitor_unshare) < 0)
                        return -1;