Unverified Commit 81bda9ca by Christian Brauner Committed by Stéphane Graber

confile: config_string_item()

parent b149f339
......@@ -325,7 +325,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;
......@@ -333,7 +333,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;
}
......
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