Commit 6776fd51 by Carlos Martín Nieto

config: really compare the variable name case-insensitively

Make cvar_name_match really compare the last part of the variable
ignoring the case.

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
parent 8cd767ef
...@@ -109,10 +109,7 @@ static int cvar_name_match(const char *local, const char *input) ...@@ -109,10 +109,7 @@ static int cvar_name_match(const char *local, const char *input)
/* /*
* Anything after the last (possibly only) dot is case-insensitive * Anything after the last (possibly only) dot is case-insensitive
*/ */
if (!strcmp(input_dot, local_dot)) return !strcasecmp(input_dot, local_dot);
return 1;
return 0;
} }
static git_cvar *cvar_list_find(git_cvar *start, const char *name) static git_cvar *cvar_list_find(git_cvar *start, const char *name)
......
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