confile: add config_value_empty()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2017-05-29 14:28:34 +02:00
parent 486e37c80f
commit fe8d7be755
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -328,6 +328,14 @@ int lxc_listconfigs(char *retv, int inlen)
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)
{
char *new_value;