mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 20:17:59 +00:00
config: Fix typo and remove debug statement
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
This commit is contained in:
parent
f026f2b9ee
commit
fe116e261f
@ -56,7 +56,7 @@ static void cvar_list_free(git_cvar *start)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The order is importart. The first parameter is the name we want to
|
* The order is important. The first parameter is the name we want to
|
||||||
* match against, and the second one is what we're looking for
|
* match against, and the second one is what we're looking for
|
||||||
*/
|
*/
|
||||||
static int cvar_section_match(const char *local, const char *input)
|
static int cvar_section_match(const char *local, const char *input)
|
||||||
@ -74,10 +74,8 @@ static int cvar_section_match(const char *local, const char *input)
|
|||||||
return !strncasecmp(local, input, local_last_dot - local);
|
return !strncasecmp(local, input, local_last_dot - local);
|
||||||
|
|
||||||
/* Anything before the space in local is case-insensitive */
|
/* Anything before the space in local is case-insensitive */
|
||||||
if (strncasecmp(local, input, local_sp - local)) {
|
if (strncasecmp(local, input, local_sp - local))
|
||||||
fprintf(stderr, "copmparison of %s and %s failed\n", local, input);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We compare starting from the first character after the
|
* We compare starting from the first character after the
|
||||||
|
Loading…
Reference in New Issue
Block a user