From e70b9db539343a143b9c30a87359dc2f6e6de6da Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Mon, 29 May 2017 14:30:04 +0200 Subject: [PATCH] confile: config_string_item() Signed-off-by: Christian Brauner --- src/lxc/confile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 1561a73c9..4e751f4fc 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -340,7 +340,7 @@ static int config_string_item(char **conf_item, const char *value) { char *new_value; - if (!value || strlen(value) == 0) { + if (config_value_empty(value)) { free(*conf_item); *conf_item = NULL; return 0; @@ -348,7 +348,7 @@ static int config_string_item(char **conf_item, const char *value) new_value = strdup(value); if (!new_value) { - SYSERROR("failed to strdup '%s': %m", value); + SYSERROR("failed to duplicate string \"%s\"", value); return -1; }