diff options
| author | Carlos Martín Nieto <cmn@elego.de> | 2011-04-04 15:33:14 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@elego.de> | 2011-04-04 15:33:26 +0200 |
| commit | fe116e261ffb7d643c9a6baee70fbfa07a20588f (patch) | |
| tree | 6c7d4dd46874696878b624cb275a47d9f0f3f439 /src/config.c | |
| parent | f026f2b9ee5f0aeced5c366c890c4a29eee2a1c7 (diff) | |
| download | libgit2-fe116e261ffb7d643c9a6baee70fbfa07a20588f.tar.gz | |
config: Fix typo and remove debug statement
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'src/config.c')
| -rw-r--r-- | src/config.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c index c3f36f8a2..4aa0e3691 100644 --- a/src/config.c +++ b/src/config.c @@ -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 */ 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); /* Anything before the space in local is case-insensitive */ - if (strncasecmp(local, input, local_sp - local)) { - fprintf(stderr, "copmparison of %s and %s failed\n", local, input); + if (strncasecmp(local, input, local_sp - local)) return 0; - } /* * We compare starting from the first character after the |
