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

confile: add config_value_empty()

parent ac6a17b9
...@@ -313,6 +313,14 @@ int lxc_listconfigs(char *retv, int inlen) ...@@ -313,6 +313,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