Unverified Commit 346d1775 by Christian Brauner Committed by Stéphane Graber

confile: add config_value_empty()

parent cc05ab15
...@@ -286,6 +286,14 @@ int lxc_listconfigs(char *retv, int inlen) ...@@ -286,6 +286,14 @@ int lxc_listconfigs(char *retv, int inlen)
return fulllen; return fulllen;
} }
static inline bool config_value_empty(const char *value)
{
if (value && strlen(value) > 0)
return false;
return true;
}
static int config_string_item(char **conf_item, const char *value) static int config_string_item(char **conf_item, const char *value)
{ {
char *new_value; char *new_value;
......
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