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
......@@ -750,7 +750,7 @@ void parser_get_opt_param_string(struct swift_params *params, const char *name,
strcpy(retParam, params->data[i].value);
/* 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(
"Tried parsing %s again but cannot parse a parameter with "
"two different default value ('%s' != '%s')",
......
Supports Markdown
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