confile: config_limit()

parent fb0752be
...@@ -1619,7 +1619,7 @@ static int config_limit(const char *key, const char *value, ...@@ -1619,7 +1619,7 @@ static int config_limit(const char *key, const char *value,
struct rlimit limit; struct rlimit limit;
unsigned long limit_value; unsigned long limit_value;
if (!value || strlen(value) == 0) if (config_value_empty(value))
return lxc_clear_limits(lxc_conf, key); return lxc_clear_limits(lxc_conf, key);
if (strncmp(key, "lxc.limit.", sizeof("lxc.limit.")-1) != 0) if (strncmp(key, "lxc.limit.", sizeof("lxc.limit.")-1) != 0)
......
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