Skip to content

Commit

Permalink
confile: add config_value_empty()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner authored and stgraber committed Aug 15, 2017
1 parent cc05ab1 commit 346d177
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lxc/confile.c
Expand Up @@ -286,6 +286,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;
Expand Down

0 comments on commit 346d177

Please sign in to comment.