mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 01:34:56 +00:00
confile: add config_value_empty()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
486e37c80f
commit
fe8d7be755
@ -328,6 +328,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;
|
||||||
|
Loading…
Reference in New Issue
Block a user