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
9a193102
Unverified
Commit
9a193102
authored
Aug 24, 2018
by
Patrick Steinhardt
Committed by
GitHub
Aug 24, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4774 from tiennou/fix/clang-analyzer
Coverity flavored clang analyzer fixes
parents
fd7ab1d7
1c949ce1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
src/mailmap.c
+1
-1
src/remote.c
+2
-2
src/revwalk.c
+1
-1
src/transports/http.c
+1
-1
No files found.
src/mailmap.c
View file @
9a193102
...
...
@@ -225,7 +225,7 @@ int git_mailmap_add_entry(
static
int
mailmap_add_buffer
(
git_mailmap
*
mm
,
const
char
*
buf
,
size_t
len
)
{
int
error
;
int
error
=
0
;
git_parse_ctx
ctx
;
/* Scratch buffers containing the real parsed names & emails */
...
...
src/remote.c
View file @
9a193102
...
...
@@ -428,7 +428,7 @@ static int get_optional_config(
int
git_remote_lookup
(
git_remote
**
out
,
git_repository
*
repo
,
const
char
*
name
)
{
git_remote
*
remote
;
git_remote
*
remote
=
NULL
;
git_buf
buf
=
GIT_BUF_INIT
;
const
char
*
val
;
int
error
=
0
;
...
...
@@ -510,7 +510,7 @@ int git_remote_lookup(git_remote **out, git_repository *repo, const char *name)
if
((
error
=
get_optional_config
(
NULL
,
config
,
&
buf
,
refspec_cb
,
&
data
))
<
0
)
goto
cleanup
;
if
(
download_tags_value
(
remote
,
config
)
<
0
)
if
(
(
error
=
download_tags_value
(
remote
,
config
)
)
<
0
)
goto
cleanup
;
if
((
error
=
lookup_remote_prune_config
(
remote
,
config
,
name
))
<
0
)
...
...
src/revwalk.c
View file @
9a193102
...
...
@@ -550,7 +550,7 @@ cleanup:
static
int
prepare_walk
(
git_revwalk
*
walk
)
{
int
error
;
int
error
=
0
;
git_commit_list
*
list
,
*
commits
=
NULL
;
git_commit_list_node
*
next
;
...
...
src/transports/http.c
View file @
9a193102
...
...
@@ -142,7 +142,7 @@ static int auth_context_match(
}
if
(
!
scheme
)
return
0
;
return
-
1
;
/* See if authentication has already started for this scheme */
git_vector_foreach
(
&
t
->
auth_contexts
,
i
,
c
)
{
...
...
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