Skip to content
Snippets Groups Projects
Commit 94c0b1b4 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Fix a logic mistake in parser_get_opt_param_string() that was hidden by the...

Fix a logic mistake in parser_get_opt_param_string() that was hidden by the spurious space added to the default values of strings.
parent cd7a8952
Branches
Tags
1 merge request!1092Use safe_checkdir() to create directories everywhere. Set the default directories to '.'
...@@ -750,7 +750,7 @@ void parser_get_opt_param_string(struct swift_params *params, const char *name, ...@@ -750,7 +750,7 @@ void parser_get_opt_param_string(struct swift_params *params, const char *name,
strcpy(retParam, params->data[i].value); strcpy(retParam, params->data[i].value);
/* Ensure same behavior if called multiple times for same parameter */ /* Ensure same behavior if called multiple times for same parameter */
if (params->data[i].is_default && !strcmp(def, retParam)) if (params->data[i].is_default && strcmp(def, retParam) != 0)
error( error(
"Tried parsing %s again but cannot parse a parameter with " "Tried parsing %s again but cannot parse a parameter with "
"two different default value ('%s' != '%s')", "two different default value ('%s' != '%s')",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment