confile: config_init_gid()

parent 2e7cde40
...@@ -1179,9 +1179,13 @@ static int config_init_gid(const char *key, const char *value, ...@@ -1179,9 +1179,13 @@ static int config_init_gid(const char *key, const char *value,
{ {
unsigned int init_gid; unsigned int init_gid;
if (config_value_empty(value)) /* Set config value to default. */
if (config_value_empty(value)) {
lxc_conf->init_gid = 0;
return 0; return 0;
}
/* Parse new config value. */
if (lxc_safe_uint(value, &init_gid) < 0) if (lxc_safe_uint(value, &init_gid) < 0)
return -1; return -1;
lxc_conf->init_gid = init_gid; lxc_conf->init_gid = init_gid;
......
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