confile: config_includefile()

parent 46f3de30
...@@ -2173,9 +2173,13 @@ out: ...@@ -2173,9 +2173,13 @@ out:
static int config_includefile(const char *key, const char *value, static int config_includefile(const char *key, const char *value,
struct lxc_conf *lxc_conf) struct lxc_conf *lxc_conf)
{ {
if (config_value_empty(value)) /* Set config value to default. */
if (config_value_empty(value)) {
lxc_clear_config_item(lxc_conf, key);
return 0; return 0;
}
/* Parse new config value. */
if (is_dir(value)) if (is_dir(value))
return do_includedir(value, lxc_conf); return do_includedir(value, lxc_conf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment