Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
fe116e26
Commit
fe116e26
authored
Apr 04, 2011
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config: Fix typo and remove debug statement
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
parent
f026f2b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
src/config.c
+2
-4
No files found.
src/config.c
View file @
fe116e26
...
@@ -56,7 +56,7 @@ static void cvar_list_free(git_cvar *start)
...
@@ -56,7 +56,7 @@ static void cvar_list_free(git_cvar *start)
}
}
/*
/*
* The order is importa
r
t. The first parameter is the name we want to
* The order is importa
n
t. 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)
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment