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
43e5dda7
Commit
43e5dda7
authored
Aug 12, 2013
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config: get rid of a useless asignment
parent
86c02614
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
6 deletions
+1
-6
src/config_file.c
+1
-3
src/strmap.c
+0
-2
src/strmap.h
+0
-1
No files found.
src/config_file.c
View file @
43e5dda7
...
...
@@ -268,12 +268,10 @@ static int config_iterator_next(
diskfile_backend
*
b
=
(
diskfile_backend
*
)
it
->
parent
.
backend
;
int
err
=
0
;
cvar_t
*
var
;
const
char
*
key
;
if
(
it
->
next_var
==
NULL
)
{
err
=
git_strmap_next
(
&
key
,
(
void
**
)
&
var
,
&
(
it
->
iter
),
b
->
values
);
err
=
git_strmap_next
((
void
**
)
&
var
,
&
(
it
->
iter
),
b
->
values
);
}
else
{
key
=
it
->
next_var
->
entry
->
name
;
var
=
it
->
next_var
;
}
...
...
src/strmap.c
View file @
43e5dda7
...
...
@@ -8,7 +8,6 @@
#include "strmap.h"
int
git_strmap_next
(
const
char
**
key
,
void
**
data
,
git_strmap_iter
*
iter
,
git_strmap
*
map
)
...
...
@@ -22,7 +21,6 @@ int git_strmap_next(
continue
;
}
*
key
=
git_strmap_key
(
map
,
*
iter
);
*
data
=
git_strmap_value_at
(
map
,
*
iter
);
++
(
*
iter
);
...
...
src/strmap.h
View file @
43e5dda7
...
...
@@ -68,7 +68,6 @@ typedef khiter_t git_strmap_iter;
#define git_strmap_end kh_end
int
git_strmap_next
(
const
char
**
key
,
void
**
data
,
git_strmap_iter
*
iter
,
git_strmap
*
map
);
...
...
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