Unverified Commit dc36a30a by Christian Brauner Committed by Stéphane Graber

confile: config_autodev()

parent 86f52910
......@@ -1428,9 +1428,13 @@ static int config_loglevel(const char *key, const char *value,
static int config_autodev(const char *key, const char *value,
struct lxc_conf *lxc_conf)
{
if (config_value_empty(value))
/* Set config value to default. */
if (config_value_empty(value)) {
lxc_conf->autodev = 0;
return 0;
}
/* Parse new config value. */
if (lxc_safe_uint(value, &lxc_conf->autodev) < 0)
return -1;
......
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